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

# PFGroupsInviteToGroupRequest

> PFGroupsInviteToGroupRequest データ モデル。グループによってブロックされていない場合、プレイヤーをグループに参加するよう招待します。省略可能なロールを指定することもできます。

PFGroupsInviteToGroupRequest データ モデル。グループによってブロックされていない場合、プレイヤーをグループに参加するよう招待します。省略可能なロールを指定して、プレイヤーが招待を承諾した際に自動的にそのロールに割り当てることもできます。既定では、エンティティにグループへの未処理の申請がある場合、これは代わりに申請を承諾し、後でクリーンアップが必要になる重複した参加招待を作成する代わりに、その旨を示すエラーを返します。新しい招待に関する情報、または既存の参加申請が承諾されたことを示すエラーを返します。

## 構文

```cpp theme={null}
typedef struct PFGroupsInviteToGroupRequest {  
    bool const* autoAcceptOutstandingApplication;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
    PFEntityKey const* group;  
    const char* roleId;  
} PFGroupsInviteToGroupRequest;  
```

### メンバー

**`autoAcceptOutstandingApplication`**   bool const\*<br />*may be nullptr*

(省略可能) 省略可能。既定値は true。申請が存在する場合、招待を作成する代わりに自動的に承諾します。

**`customTags`**   [PFStringDictionaryEntry](/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry) const\*<br />*may be nullptr*

(省略可能) リクエストに関連付けられている省略可能なカスタム タグ (ビルド番号、外部トレース識別子など)。

**`customTagsCount`**   uint32\_t

customTags の数

**`entity`**   [PFEntityKey](/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*

このアクションの実行対象となるエンティティ。

**`group`**   [PFEntityKey](/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*

グループの識別子。

**`roleId`**   const char\*<br />*is null-terminated*

(省略可能) 省略可能。ユーザーを割り当てる、グループ内の既存のロールの ID。これが指定されていない場合、そのグループの既定のメンバー ロールが使用されます。ロール ID は 1 ～ 64 文字の長さである必要があります。

## 要件

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

## 関連項目

[PFGroupsTypes のメンバー](/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members)


## Related topics

- [PFGroupsInviteToGroupAsync](/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupsinvitetogroupasync.md)
- [Services C API overview - PFGroupsTypes.h](/ja-jp/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [PFGroupsInviteToGroupResponse](/ja-jp/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsinvitetogroupresponse.md)
- [PFGroupsApplyToGroupRequest](/ja-jp/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsapplytogrouprequest.md)
- [PFGroupsInviteToGroupGetResult](/ja-jp/services/playfab/api-references/c/pfgroups/functions/pfgroupsinvitetogroupgetresult.md)
