> ## 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.

# XblProfileGetUserProfilesForSocialGroupAsync

> XblProfileGetUserProfilesForSocialGroupAsync

Gets profiles for users in a specified social group.

## Syntax

```cpp theme={null}
HRESULT XblProfileGetUserProfilesForSocialGroupAsync(  
         XblContextHandle xboxLiveContext,  
         const char* socialGroup,  
         XAsyncBlock* async  
)  
```

### Parameters

*xboxLiveContext*   \_In\_\
Type: [XblContextHandle](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

An XBOX services context handle created with XblContextCreateHandle.

*socialGroup*   \_In\_z\_\
Type: char\*

The UTF-8 encoded name of the social group of users to search. Options are "Favorites" and "People".

*async*   \_In\_\
Type: XAsyncBlock\*

Caller allocated AsyncBlock.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

To get the result, first call [XblProfileGetUserProfilesForSocialGroupResultCount](https://docs.xbox.com/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresultcount.md) to get the count of returned profiles and then call [XblProfileGetUserProfilesForSocialGroupResult](https://docs.xbox.com/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresult.md) inside the AsyncBlock callback or after the AsyncBlock is complete.

## REST Call

Calls V2 GET `/users/{userId}/profile/settings/people/{socialGroup}`

## Requirements

**Header:** profile\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[profile\_c](https://docs.xbox.com/reference/live/xsapi-c/profile_c/profile_c_members.md)


## Related topics

- [profile_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/profile_c/profile_c_members.md)
- [XblProfileGetUserProfilesForSocialGroupResult](https://docs.xbox.com/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresult.md)
- [XblProfileGetUserProfilesForSocialGroupResultCount](https://docs.xbox.com/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresultcount.md)
- [XblProfileGetUserProfileAsync](https://docs.xbox.com/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileasync.md)
- [XblProfileGetUserProfilesAsync](https://docs.xbox.com/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesasync.md)
