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

# Changing the Default User for the Game

> Changing the Default User for the Game

XR-112 requires that games provide an entry point to the account picker to allow
changing of the active (default) users. If the game is using the simplified user
model and has ensured that they have a required default user before launch, the
game doesn't need to provide this entry point.

As a best practice, games using the simplified user model may still want to give the
option of changing the default user of their game. This will require a little bit of
code. At a high-level, they need to allow a new user to sign-in and then relaunch
the game with that user. They can do this with the following steps:

1. Call [XUserAddAsync](/reference/system/xuser/functions/xuseraddasync) and get an XUserHandle
2. Call [XLaunchNewGame](/reference/system/xgame/functions/xlaunchnewgame), specifying the EXE of the current game
   and using the previously determined XUserHandle.

After the game is restarted in this manner, the new user is the default user
for that game. If that user ever signs out, the game will then be suspended.
The game will not get a sign-out even for their default user.

## See Also

[XUserAddAsync](/reference/system/xuser/functions/xuseraddasync)
[XLaunchNewGame](/reference/system/xgame/functions/xlaunchnewgame)
