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

# group_role_created

> group_role_created event.

为组创建角色时触发此事件。

## 属性

| 名称 | 类型 | 说明 |
| :- | :- | :- |
| CreatorEntityId | String | 此事件所应用于的、创建该角色的实体的标识符。 |
| CreatorEntityType | String | 此事件所应用于的、创建该角色的实体类型。 |
| EntityChain | String | 此实体的所有权链。 |
| EntityLineage | [EntityLineage](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/entitylineage.md) | 此实体所属的父实体。 |
| GroupName | String | 此事件所应用于的组的名称。 |
| RoleId | String | 此事件所应用于的角色的角色 ID。 |
| RoleName | String | 此事件所应用于的角色的显示名称。 |

## 通用属性

所有 V1 PlayStream 事件都被格式化为 JSON 对象，并共享以下通用属性：

| 名称 | 类型 | 说明 |
| :- | :- | :- |
| EntityId | String | 此事件所应用于的实体（游戏、玩家等）的标识符。 |
| EntityType | String | 此事件所应用于的实体类型（player、title 等）。如果希望 PlayFab 对此实体执行操作，则 EntityType 必须为 'player'、'character' 或 'title'。任何 PlayFab 目前不解析的实体类型都需要以命名空间为前缀（例如 'com.mygame.guild'），因为 PlayFab 可能会随时开始解析根实体。 |
| EventId | String | 由 PlayFab 分配的此事件的唯一标识符。 |
| EventName | String | 此事件的名称。 |
| EventNamespace | String | 分配给此事件的命名空间。例如：'com.myprogram.ads' |
| Source | String | 此 PlayStream 事件的源名称；如果事件源自我们，则为 PlayFab。 |
| SourceType | [SourceType](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/sourcetype.md) | 此事件的源类型（PlayFab 合作伙伴、其他后端或来自 PlayFab API）。 |
| Timestamp | DateTime | 与此事件关联的时间（UTC）。 |


## Related topics

- [PlayStream 事件模型参考](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/index.md)
- [PFGroupsUpdateGroupRoleResponse](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsupdategrouproleresponse.md)
- [group_created](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/Groups/group-created.md)
- [PFGroupsGroupWithRoles](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsgroupwithroles.md)
- [PFGroupsGroupRole](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsgrouprole.md)
