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

# PFGroupsGroupInvitation

> PFGroupsGroupInvitation data model. Describes an invitation to a group.

PFGroupsGroupInvitation data model. Describes an invitation to a group.

## Syntax

```cpp theme={null}
typedef struct PFGroupsGroupInvitation {  
    time_t expires;  
    PFEntityKey const* group;  
    PFGroupsEntityWithLineage const* invitedByEntity;  
    PFGroupsEntityWithLineage const* invitedEntity;  
    const char* roleId;  
} PFGroupsGroupInvitation;  
```

### Members

**`expires`**   time\_t

When the invitation will expire and be deleted.

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

(Optional) The group that the entity invited to.

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

(Optional) The entity that created the invitation.

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

(Optional) The entity that is invited.

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

(Optional) ID of the role in the group to assign the user to.

## Requirements

**Header:** PFGroupsTypes.h

## See also

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


## Related topics

- [PFGroupsListGroupInvitationsResponse](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistgroupinvitationsresponse.md)
- [PFGroupsListMembershipOpportunitiesResponse](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipopportunitiesresponse.md)
- [Services C API overview - PFGroupsTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [List Group Invitations](https://docs.xbox.com/services/playfab/api-references/rest/groups/groups/list-group-invitations.md)
- [Remove Group Invitation](https://docs.xbox.com/api-reference/groups/remove-group-invitation.md)
