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

# UserClaims (JSON)

> UserClaims (JSON)

# UserClaims (JSON)

返回关于当前已认证用户的信息。

## UserClaims

UserClaims 对象具有以下规范。

| 成员 | 类型 | 说明 |
| - | - | - |
| gamertag | string | 用户的玩家代号。 |
| xuid | 64 位无符号整数 | 用户的 XBOX User ID (XUID)。 |

## JSON 语法示例

```json theme={null}
{
   "xuid" : 2533274790412952,
   "gamertag" : "gamer"

}
    
```

## 另请参阅

##### 父主题

[JavaScript 对象表示法 (JSON) 对象参考](https://devdocs.xbox.com/zh-CN/reference/live/rest/json/atoc-xboxlivews-reference-json)


## Related topics

- [Server-side handling of Xbox services User Privileges](https://devdocs.xbox.com/services/xbox-services/fundamentals/identity/privileges/concepts/live-user-privileges-server.md)
- [Example XSTS Token, decryption, and validation](https://devdocs.xbox.com/services/xbox-services/fundamentals/s2s-auth-calls/service-authentication/security-tokens/live-sample-xsts-token.md)
- [Xbox services security token claims](https://devdocs.xbox.com/services/xbox-services/fundamentals/s2s-auth-calls/service-authentication/security-tokens/live-token-claims.md)
- [Requesting a User Store ID for service-to-service authentication](https://devdocs.xbox.com/publishing/xstore-commerce/xstore-requesting-userstoreid.md)
- [JSON Lua](https://devdocs.xbox.com/zh-CN/services/playfab/sdks/lua/Licenses/json-lua-license.md)
