Skip to main content

Example demonstrating how to silently get the default user

A game needs to establish an initial user. This example shows how to accomplish this as early as possible. You would typically want to follow this pattern if your game menus wanted to “greet” the user with something clearly identifying them, and you didn’t want to immediately show the UI.

Example demonstrating how to get an initial user

As with the previous example, the game needs to establish an initial user. In this case, the game is willing to have UI show at the point when it requests a user. UI only shows if the system can’t determine the default user.

See also

User identity and XUser
Last modified on August 4, 2026