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

# PFLobbyOwnerMigrationPolicy

> PFLobbyOwnerMigrationPolicy values in the PlayFab Multiplayer C++ SDK that control how lobby ownership transfers between members when the current owner leaves.

The available policies the lobby service can use to migrate lobby ownership between members.

## Syntax

```cpp theme={null}
enum class PFLobbyOwnerMigrationPolicy  : uint32_t  
{  
    Automatic = 0,  
    Manual = 1,  
    None = 2,  
    Server = 3,  
}  
```

## Constants

| Constant | Description |
| - | - |
| Automatic | Once the lobby owner is disconnected, a new owner is chosen at random from the set of connected members. |
| Manual | Once the lobby owner is disconnected, any member may elect themselves the new owner.  Until a new owner is chosen, [PFLobbyGetOwner](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner.md) will return a null owner. |
| None | At any point, any member may elect themselves the owner of the lobby, regardless of the state of the current owner.  If the current owner leaves, [PFLobbyGetOwner](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner.md) will return a null owner until a new owner elects themselves. |
| Server | The server is the owner and owner migration is not possible. |

## Remarks

Some migration policies trigger based on the lobby owner's connection status. A member is considered disconnected when their [PFLobbyMemberConnectionStatus](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbymemberconnectionstatus.md) value changes from `PFLobbyMemberConnectionStatus::Connected` to `PFLobbyMemberConnectionStatus::NotConnected`.

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)\
[PFLobbyMemberConnectionStatus](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbymemberconnectionstatus.md)


## Related topics

- [PFLobbyGetOwnerMigrationPolicy](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetownermigrationpolicy.md)
- [PFLobbyGetOwner](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner.md)
- [PFLobbyArrangedJoinConfiguration](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyarrangedjoinconfiguration.md)
- [PFLobbyCreateConfiguration](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbycreateconfiguration.md)
- [PFLobbyDataUpdate](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbydataupdate.md)
