> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ListCurrentMemberBlocking

# Package: membersV2

# Namespace: MemberToMemberBlocks

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/list-current-member-blocking.md

## Permission Scopes:
Manage Members: SCOPE.DC-MEMBERS.MANAGE-MEMBERS

## Introduction

Retrieves a list of up to 100 IDs of members blocked by the current member, sorted by the date the block was created in ascending order.

This method must be called with a site member identity. The list doesn't include members who blocked the current member. To retrieve blocks in both directions, call [List Member Blocks](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/list-member-blocks.md).

---

## REST API

### Schema

```
 Method: listCurrentMemberBlocking
 Description: Retrieves a list of up to 100 GUIDs of members blocked by the current member, sorted by the date the block was created in ascending order.  This method must be called with a site member identity. The list doesn't include members who blocked the current member. To retrieve blocks in both directions, call [List Member Blocks](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/list-member-blocks.md).
 URL: https://www.wixapis.com/members/v1/member-to-member-blocks/members/my
 Method: GET
 Method parameters:
   param name: cursorPaging | type: CursorPaging    
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: ListCurrentMemberBlockingResponse
  - name: blockedMemberIds | type: array<string> | description: IDs of members blocked by the current member.  | validation: format GUID
  - name: pagingMetadata | type: PagingMetadataV2 | description: Metadata for the paginated results.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  
     - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000


```

### Examples

### List members blocked by the current member
```curl
curl -X GET \
'https://www.wixapis.com/members/v1/member-to-member-blocks/members/my?cursorPaging.limit=10' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.memberToMemberBlock.listCurrentMemberBlocking(options)
 Description: Retrieves a list of up to 100 GUIDs of members blocked by the current member, sorted by the date the block was created in ascending order.  This method must be called with a site member identity. The list doesn't include members who blocked the current member. To retrieve blocks in both directions, call [List Member Blocks](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/list-member-blocks.md).
 Method parameters:
   param name: options | type: ListCurrentMemberBlockingOptions  none  
        - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  
           - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
           - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: PROMISE<ListCurrentMemberBlockingResponse>
  - name: blockedMemberIds | type: array<string> | description: IDs of members blocked by the current member.  | validation: format GUID
  - name: pagingMetadata | type: PagingMetadataV2 | description: Metadata for the paginated results.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  
     - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000


```

### Examples

### List members blocked by the current member
```javascript
import { memberToMemberBlock } from "@wix/members";

async function listCurrentMemberBlocking() {
  const response = await memberToMemberBlock.listCurrentMemberBlocking({
    cursorPaging: { limit: 10 },
  });
}

/* Promise resolves to:
 * {
 *   "blockedMemberIds": [
 *     "e411fe13-9794-42b6-ad62-72c9917f1bac",
 *     "9374ed3f-c6c2-4d7d-86f6-4208f70568da"
 *   ],
 *   "pagingMetadata": {
 *     "count": 2,
 *     "total": 2,
 *     "cursors": {}
 *   }
 * }
 */

```

### listCurrentMemberBlocking (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { memberToMemberBlock } from '@wix/members';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { memberToMemberBlock },
  // Include the auth strategy and host as relevant
});


async function listCurrentMemberBlocking(options) {
  const response = await myWixClient.memberToMemberBlock.listCurrentMemberBlocking(options);
};
```

---