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

# PartyXblChatUser::GetXboxUserId

> PartyXblChatUser::GetXboxUserId in PartyXboxLive.h returns the XBOX Live user ID (XUID) tied to a chat user in the PlayFab Party XBOX Live helper library.

Gets the XBOX Live User Id associated with this user.

## Syntax

```cpp theme={null}
PartyError GetXboxUserId(  
    uint64_t* xboxUserId  
)  
```

### Parameters

**`xboxUserId`**   uint64\_t\*\
*output*

The output XBOX Live User Id.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyXblManager::GetErrorMessage()](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_geterrormessage).

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXblChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser)


## Related topics

- [PartyXblChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser.md)
- [PartyXblChatUser::GetLocal](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getlocal.md)
- [PartyXblChatUser::GetCustomContext](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getcustomcontext.md)
- [PartyXblChatUser::SetCustomContext](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_setcustomcontext.md)
- [PartyXblLocalChatUser::GetRequiredChatPermissionInfo](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/methods/partyxbllocalchatuser_getrequiredchatpermissioninfo.md)
