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

# PFGroupsGroupWithRoles

> PFGroupsGroupWithRoles data model. Describes a group and the roles that it contains.

PFGroupsGroupWithRoles data model. Describes a group and the roles that it contains.

## Syntax

```cpp theme={null}
typedef struct PFGroupsGroupWithRoles {  
    PFEntityKey const* group;  
    const char* groupName;  
    int32_t profileVersion;  
    PFGroupsGroupRole const* roles;  
    uint32_t rolesCount;  
} PFGroupsGroupWithRoles;  
```

### Members

**`group`**   [PFEntityKey](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md) const\*\
*may be nullptr*

(Optional) ID for the group.

**`groupName`**   const char\*\
*is null-terminated*

(Optional) The name of the group.

**`profileVersion`**   int32\_t

The current version of the profile, can be used for concurrency control during updates.

**`roles`**   [PFGroupsGroupRole](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsgrouprole.md) const\*\
*may be nullptr*

(Optional) The list of roles within the group.

**`rolesCount`**   uint32\_t

Count of roles

## Requirements

**Header:** PFGroupsTypes.h

## See also

[PFGroupsTypes members](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)


## Related topics

- [PFGroupsListMembershipResponse](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipresponse.md)
- [Services C API overview - PFGroupsTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [PFGroupsGroupRole](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsgrouprole.md)
- [group_role_updated](https://docs.xbox.com/services/playfab/api-references/events/Groups/group-role-updated.md)
- [group_role_created](https://docs.xbox.com/services/playfab/api-references/events/Groups/group-role-created.md)
