> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFGroupsListMembershipAsync

> エンティティに関するすべてのグループとロールを一覧表示します

エンティティに関するすべてのグループとロールを一覧表示します

## 構文

```cpp theme={null}
HRESULT PFGroupsListMembershipAsync(  
    PFEntityHandle entityHandle,  
    const PFGroupsListMembershipRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

**`request`**   [PFGroupsListMembershipRequest\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershiprequest.md)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*\
*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API はすべてのプラットフォームで利用できます。エンティティが所属するグループとロールを一覧表示し、グループとロールのメタデータおよびメンバーシップが呼び出し元に対して可視かどうかを確認します。呼び出し元に表示できるロールにエンティティが属していない場合、呼び出し元がそのエンティティが当該グループのメンバーであることを認識できる権限を持っていたとしても、そのグループは結果に含まれません。GroupListGroupMembersAsync、GroupListMembershipOpportunitiesAsync もあわせて参照してください。非同期タスクが完了したら、[PFGroupsListMembershipGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipgetresultsize.md) と [PFGroupsListMembershipGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipgetresult.md) を呼び出して結果を取得します。

## 要件

**ヘッダー:** PFGroups.h

## 関連項目

[PFGroups のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/pfgroups_members.md)


## Related topics

- [PFGroupsListMembershipGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipgetresult.md)
- [Services C API overview - PFGroups.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/pfgroups_members.md)
- [PFGroupsListMembershipOpportunitiesAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipopportunitiesasync.md)
- [PFGroupsListMembershipOpportunitiesGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipopportunitiesgetresult.md)
- [PFGroupsListGroupInvitationsAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupslistgroupinvitationsasync.md)
