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

# 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](/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*<br />*may be nullptr*

(Optional) The group that the entity invited to.

**`invitedByEntity`**   [PFGroupsEntityWithLineage](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsentitywithlineage) const\*<br />*may be nullptr*

(Optional) The entity that created the invitation.

**`invitedEntity`**   [PFGroupsEntityWithLineage](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsentitywithlineage) const\*<br />*may be nullptr*

(Optional) The entity that is invited.

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

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

## Requirements

**Header:** PFGroupsTypes.h

## See also

[PFGroupsTypes members](/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members)


## Related topics

- [PFGroupsListGroupInvitationsResponse](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistgroupinvitationsresponse.md)
- [PFGroupsListMembershipOpportunitiesResponse](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipopportunitiesresponse.md)
- [Services C API overview - PFGroupsTypes.h](/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [PFGroupsListGroupInvitationsAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupslistgroupinvitationsasync.md)
- [PFGroupsRemoveGroupInvitationAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupsremovegroupinvitationasync.md)
