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

# XblSocialGetSocialRelationshipsAsync

> XblSocialGetSocialRelationshipsAsync

Gets a list of people that the caller is socially connected to.

## Syntax

```cpp theme={null}
HRESULT XblSocialGetSocialRelationshipsAsync(  
         XblContextHandle xboxLiveContext,  
         uint64_t xboxUserId,  
         XblSocialRelationshipFilter socialRelationshipFilter,  
         size_t startIndex,  
         size_t maxItems,  
         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.

*xboxUserId*   \_In\_\
Type: uint64\_t

The XBOX User Id to get the social relationships for.

*socialRelationshipFilter*   \_In\_\
Type: [XblSocialRelationshipFilter](https://docs.xbox.com/reference/live/xsapi-c/social_c/enums/xblsocialrelationshipfilter.md)

Controls how the list is filtered.

*startIndex*   \_In\_\
Type: size\_t

Controls the starting index of the results list.

*maxItems*   \_In\_\
Type: size\_t

The maximum number of items that the results list can contain. Pass 0 to attempt to retrieve all items.

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

Caller allocated [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md).

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Call [XblSocialGetSocialRelationshipsResult](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md) to get the result.

## REST Call

V1 GET `/users/{ownerId}/people?view={view}&startIndex={startIndex}&maxItems={maxItems}`

## Requirements

**Header:** social\_c.h

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

## See also

[social\_c](https://docs.xbox.com/reference/live/xsapi-c/social_c/social_c_members.md)


## Related topics

- [XblSocialGetSocialRelationshipsResult](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
- [Getting a social relationship](https://docs.xbox.com/services/xbox-services/community/people-system/how-to/live-getting-a-social-relationship.md)
- [XblSocialRelationshipFilter](https://docs.xbox.com/reference/live/xsapi-c/social_c/enums/xblsocialrelationshipfilter.md)
- [social_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/social_c/social_c_members.md)
- [XblSocialRelationshipResultGetTotalCount](https://docs.xbox.com/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgettotalcount.md)
