> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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\*\*](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser.md)\
*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()](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_geterrormessage.md).

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXblManager](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/partyxblmanager.md)


## Related topics

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