> ## 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::CreateLocalChatUser

> Queues an asynchronous attempt to create a local chat user. Privacy and privilege information related to this user will be tracked by the helper library.

Queues an asynchronous attempt to create a local chat user. Privacy and privilege information related to this user will be tracked by the helper library.

## Syntax

```cpp theme={null}
PartyError CreateLocalChatUser(  
    uint64_t xboxUserId,  
    void* asyncIdentifier,  
    PartyXblLocalChatUser** localChatUser  
)  
```

### Parameters

**`xboxUserId`**   uint64\_t

The XBOX Live User Id associated with the local chat user.

**`asyncIdentifier`**   void\*\
*optional*

An optional, app-defined, pointer-sized context value that can be used to associate the completion state change with this call.

**`localChatUser`**   [PartyXblLocalChatUser\*\*](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser)\
*optional, library-allocated output*

The output local 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)
- [PartyXblStateChangeType](/services/playfab/multiplayer/networking/xblreference/enums/partyxblstatechangetype.md)
- [PlayFab Party XBOX Live Helper Release Notes](/services/playfab/multiplayer/networking/party-xboxlive-relnotes.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)
