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

# PartyXblManager::CreateRemoteChatUser

> Creates a remote chat user — an XBOX Live user communicating with a local user — so the Party library tracks privacy state with local chat users.

Creates a remote chat user. A remote chat user is an XBOX Live user currently communicating with at least one local user. Creating a remote chat user will cause the library to start tracking privacy information related to this user in relation to every local chat user.

## Syntax

```cpp theme={null}
PartyError CreateRemoteChatUser(  
    uint64_t xboxUserId,  
    PartyXblChatUser** chatUser  
)  
```

### Parameters

**`xboxUserId`**   uint64\_t

The XBOX Live user id associated with the chat user.

**`chatUser`**   [PartyXblChatUser\*\*](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser)\
*optional, library-allocated output*

The output chat user object.

### 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 [GetErrorMessage()](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_geterrormessage).

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXblManager](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/partyxblmanager)


## Related topics

- [PartyXblManager::GetChatUsers](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_getchatusers.md)
- [PlayFab integration for XBOX services titles](/services/xbox-services/playfab-integration.md)
- [XBOX Live helper library for PlayFab Party](/services/playfab/multiplayer/networking/party-xbox-live-guide.md)
- [PartyXblManager::CreateLocalChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_createlocalchatuser.md)
- [PartyXblManager::DestroyChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_destroychatuser.md)
