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

# PFGroupsListMembershipOpportunitiesAsync

> Lists all outstanding invitations and group applications for an entity

Lists all outstanding invitations and group applications for an entity

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFGroupsListMembershipOpportunitiesRequest\*](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipopportunitiesrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. Lists all outstanding group applications and invitations for an entity. Anyone may call this for any entity, but data will only be returned for the entity or a parent of that entity. To list invitations or applications for a group to check if a player is trying to join, use ListGroupInvitations and ListGroupApplications. See also GroupListGroupApplicationsAsync, GroupListGroupInvitationsAsync. When the asynchronous task is complete, call [PFGroupsListMembershipOpportunitiesGetResultSize](/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipopportunitiesgetresultsize) and [PFGroupsListMembershipOpportunitiesGetResult](/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipopportunitiesgetresult) to get the result.

## Requirements

**Header:** PFGroups.h

## See also

[PFGroups members](/services/playfab/api-references/c/pfgroups/pfgroups_members)


## Related topics

- [PFGroupsListMembershipOpportunitiesGetResult](/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipopportunitiesgetresult.md)
- [Services C API overview - PFGroups.h](/services/playfab/api-references/c/pfgroups/pfgroups_members.md)
- [PFGroupsListMembershipOpportunitiesRequest](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipopportunitiesrequest.md)
- [PFGroupsListMembershipOpportunitiesResponse](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipopportunitiesresponse.md)
- [PFGroupsListMembershipAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupslistmembershipasync.md)
