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

# PFGroupsCreateGroupAsync

> Creates a new group.

Creates a new group.

## Syntax

```cpp theme={null}
HRESULT PFGroupsCreateGroupAsync(  
    PFEntityHandle entityHandle,  
    const PFGroupsCreateGroupRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFGroupsCreateGroupRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupscreategrouprequest.md)

Populated request object.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. Creates a new group, as well as administration and member roles, based off of a title's group template. Returns information about the group that was created. See also GroupAddMembersAsync, GroupApplyToGroupAsync, GroupDeleteGroupAsync, GroupInviteToGroupAsync, GroupListGroupMembersAsync, GroupRemoveMembersAsync. When the asynchronous task is complete, call [PFGroupsCreateGroupGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/functions/pfgroupscreategroupgetresultsize.md) and [PFGroupsCreateGroupGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/functions/pfgroupscreategroupgetresult.md) to get the result.

## Requirements

**Header:** PFGroups.h

## See also

[PFGroups members](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/pfgroups_members.md)


## Related topics

- [PFGroupsCreateGroupGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/functions/pfgroupscreategroupgetresult.md)
- [Services C API overview - PFGroups.h](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/pfgroups_members.md)
- [Create Group](https://docs.xbox.com/services/playfab/api-references/rest/groups/groups/create-group.md)
- [PFGroupsUpdateGroupAsync](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/functions/pfgroupsupdategroupasync.md)
- [PFGroupsDeleteGroupAsync](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/functions/pfgroupsdeletegroupasync.md)
