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

# PFLobbyCreateConfiguration

> Initial configuration data used when creating a PlayFab Multiplayer lobby, including max member count, access policy, and searchable properties.

The initial configuration data used when creating a lobby.

## Syntax

```cpp theme={null}
struct PFLobbyCreateConfiguration {  
    uint32_t maxMemberCount;  
    PFLobbyOwnerMigrationPolicy ownerMigrationPolicy;  
    PFLobbyAccessPolicy accessPolicy;  
    uint32_t searchPropertyCount;  
    const char* const* searchPropertyKeys;  
    const char* const* searchPropertyValues;  
    uint32_t lobbyPropertyCount;  
    const char* const* lobbyPropertyKeys;  
    const char* const* lobbyPropertyValues;  
    bool restrictInvitesToLobbyOwner;  
}  
```

### Members

**`maxMemberCount`**   uint32\_t

The maximum number of members allowed in the new lobby.

This value must be at least `PFLobbyMaxMemberCountLowerLimit` and no more than `PFLobbyMaxMemberCountUpperLimit`. <br /><br /> If a client would violate this limit by calling [PFMultiplayerJoinLobby()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerjoinlobby) or [PFLobbyAddMember](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyaddmember), the operation fails asynchronously.

**`ownerMigrationPolicy`**   [PFLobbyOwnerMigrationPolicy](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbyownermigrationpolicy)

The owner migration policy for the new lobby.

When passed to [PFMultiplayerCreateAndJoinLobby()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayercreateandjoinlobby), this value cannot be `PFLobbyOwnerMigrationPolicy::Server`. When passed to [PFMultiplayerCreateAndClaimServerLobby()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayercreateandclaimserverlobby), this value must be `PFLobbyOwnerMigrationPolicy::Server`.

**`accessPolicy`**   [PFLobbyAccessPolicy](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbyaccesspolicy)

The access policy for the new lobby.

**`searchPropertyCount`**   uint32\_t

The number of initial search properties for the new lobby.

**`searchPropertyKeys`**   const char\* const\*\
*array of size `searchPropertyCount`*

The keys of the initial search properties for the new lobby.

Search properties are visible to non-members of the lobby as metadata, which can be used to filter and sort lobby search results. <br /><br /> Search properties must be of the form string\_keyN or number\_keyN where "N" is a number between 1 and `PFLobbyMaxSearchPropertyCount`. e.g., string\_key1, number\_key14, etc. <br />
**`searchPropertyValues`**   const char\* const\*\
*array of size `searchPropertyCount`*

The values of the initial search properties for the new lobby.

Search properties are visible to non-members of the lobby as metadata, which can be used to filter and sort lobby search results.

**`lobbyPropertyCount`**   uint32\_t

The number of initial lobby properties for the new lobby.

**`lobbyPropertyKeys`**   const char\* const\*\
*array of size `lobbyPropertyCount`*

The keys of the initial lobby properties for the new lobby.

Lobby properties are only visible to members of the lobby.

**`lobbyPropertyValues`**   const char\* const\*\
*array of size `lobbyPropertyCount`*

The values of the initial lobby properties for the new lobby.

Lobby properties are only visible to members of the lobby.

**`restrictInvitesToLobbyOwner`**   bool

The policy for whether only the lobby owner can send invites to join the lobby.

When true, only the lobby owner can send invites. When false, any member can send invites. Can only be true for client-owned lobbies.

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PFMultiplayerCreateAndJoinLobby](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayercreateandjoinlobby.md)
- [PFMultiplayerCreateAndClaimServerLobby](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayercreateandclaimserverlobby.md)
- [PlayFab Multiplayer C++ SDK Release Notes](/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [LobbyCreateConfiguration](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyCreateConfiguration/LobbyCreateConfiguration.md)
