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

# 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.<br /><br /> Until a new owner is chosen, [PFLobbyGetOwner](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner) 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.<br /><br /> If the current owner leaves, [PFLobbyGetOwner](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner) 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](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbymemberconnectionstatus) value changes from `PFLobbyMemberConnectionStatus::Connected` to `PFLobbyMemberConnectionStatus::NotConnected`.

## Requirements

**Header:** PFLobby.h

## See also

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


## Related topics

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