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

# 加入“需要默认用户”

> 加入“需要默认用户”

要加入简化用户模型,你需要在你的 microsoftgame.config 中添加 \<AdvancedUserMode>,
并将其指定为 “false”,如下所示。

```xml theme={null}
<Game configVersion="1">
   <Identity Name="Sample" Publisher="CN=NoPublisher"/>
   <!-- much content removed -->
   <MSAAppId>PleaseChangeMe</MSAAppId>
   <TitleId>FFFFFFFF</TitleId>

   <!-- opt into requiring a default user at launch -->
   <AdvancedUserModel>false</AdvancedUserModel>
</Game>
```

从 2022 年 6 月 GDK 起,所有选择加入使用简化
用户模型的游戏还必须确保其 microsoftgame.config 具有以下内容:

* configVersion 等于 1
* 指定了 title ID
* 指定了 MSA App ID

请使用 [MicrosoftGame.config Editor](/build/core-features/common/game-config/MicrosoftGameConfig-Editor) 的“Associate
with Store”功能自动从 Partner Center 获取这些 ID。

在 GDK 的未来版本中,简化用户模型将成为默认。
到那时,你需要选择加入高级用户模型,那里没有
在启动时保证存在默认用户。


## Related topics

- [为游戏建立默认用户](/zh-CN/build/core-features/common/user/users-establishing-default-user.md)
- [Microsoft 游戏开发工具包用户模型](/zh-CN/build/core-features/common/user/gamecore-user-models.md)
- [用户](/zh-CN/build/core-features/common/user/user-toc.md)
- [更改游戏的默认用户](/zh-CN/build/core-features/common/user/users-changing-default-user.md)
- [GDK 中的用户身份与 XUser API](/zh-CN/build/core-features/common/user/index.md)
