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

# XblProfileGetUserProfilesForSocialGroupAsync

> XblProfileGetUserProfilesForSocialGroupAsync

# XblProfileGetUserProfilesForSocialGroupAsync

指定したソーシャル グループ内のユーザーのプロファイルを取得します。

## 構文

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

### パラメーター

*xboxLiveContext*   \_In\_\
型: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XblContextCreateHandle で作成された XBOX Live コンテキスト ハンドル。

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

検索するユーザーのソーシャル グループの UTF-8 エンコード名。"Favorites" と "People" のオプションがあります。

*async*   \_In\_\
型: XAsyncBlock\*

呼び出し元によって割り当てられた AsyncBlock。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

結果を取得するには、まず [XblProfileGetUserProfilesForSocialGroupResultCount](/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresultcount) を呼び出して返されたプロファイルの数を取得し、次に AsyncBlock コールバック内または AsyncBlock が完了した後に [XblProfileGetUserProfilesForSocialGroupResult](/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresult) を呼び出します。

## REST 呼び出し

V2 GET /users/{userId}/profile/settings/people/{socialGroup} を呼び出します

## 要件

**ヘッダー:** profile\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

[profile\_c](/reference/live/xsapi-c/profile_c/profile_c_members)


## Related topics

- [XblProfileGetUserProfilesForSocialGroupResult](/ja-jp/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresult.md)
- [XblProfileGetUserProfilesForSocialGroupResultCount](/ja-jp/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresultcount.md)
- [XblProfileGetUserProfileAsync](/ja-jp/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileasync.md)
- [XblProfileGetUserProfilesAsync](/ja-jp/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesasync.md)
- [XblProfileGetUserProfileResult](/ja-jp/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileresult.md)
