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

> Queues an asynchronous operation to retrieve a list of mappings between PlayFab Entity Ids and known XBOX Live User Ids.

Queues an asynchronous operation to retrieve a list of mappings between PlayFab Entity Ids and known XBOX Live User Ids.

## Syntax

```cpp theme={null}
PartyError GetEntityIdsFromXboxLiveUserIds(  
    uint32_t xboxLiveUserIdCount,  
    const uint64_t* xboxLiveUserIds,  
    const PartyXblLocalChatUser* localChatUser,  
    void* asyncIdentifier  
)  
```

### Parameters

**`xboxLiveUserIdCount`**   uint32\_t

The number of XBOX Live User Ids in the `xboxLiveUserIds` array.

**`xboxLiveUserIds`**   uint64\_t\*\
*input array of size `xboxLiveUserIdCount`*

An array of size `xboxLiveUserIdCount` containing the XBOX Live User Ids for which the library will query the PlayFab Entity Id.

**`localChatUser`**   [PartyXblLocalChatUser\*](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser.md)

Local chat user that will be used to communicate with PlayFab. The local chat user will be logged in to PlayFab if needed.

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

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

### Return value

PartyError

`c_partyErrorSuccess` if the operation started 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).

## Remarks

Each XBOX Live User Id will only map to a PlayFab Entity Id if this XBOX Live User has already been linked to a PlayFab account. A PlayFab account is automatically created and linked when calling [PartyXblManager::LoginToPlayFab](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_logintoplayfab.md) for the first time. The **LoginWithXbox** API provided by the PlayFab SDK can also be used to link an account. \
\
&#x20;If the [PartyXblGetEntityIdsFromXboxLiveUserIdsCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblgetentityidsfromxboxliveuseridscompletedstatechange.md) associated with the completion of this call indicates a failure with a result of [PartyXblStateChangeResult::PlayFabUserNotAuthorized](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/enums/partyxblstatechangeresult.md), the operation can be retried no more than one time after successfully calling LoginToPlayFab().   \
\
&#x20;If the [PartyXblGetEntityIdsFromXboxLiveUserIdsCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblgetentityidsfromxboxliveuseridscompletedstatechange.md) associated with the completion of this call indicates a failure with a result of [PartyXblStateChangeResult::PlayFabRateLimitExceeded](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/enums/partyxblstatechangeresult.md), the operation can be retried after a brief delay.

## Requirements

**Header:** PartyXboxLive.h

## See also

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


## Related topics

- [PlayFab Party Xbox Live Helper Release Notes](https://docs.xbox.com/services/playfab/multiplayer/networking/party-xboxlive-relnotes.md)
- [Xbox Live helper library for PlayFab Party](https://docs.xbox.com/services/playfab/multiplayer/networking/party-xbox-live-guide.md)
- [PartyXblStateChangeType](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/enums/partyxblstatechangetype.md)
- [PartyXblGetEntityIdsFromXboxLiveUserIdsCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblgetentityidsfromxboxliveuseridscompletedstatechange.md)
- [PartyXblManager](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/partyxblmanager.md)
