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

# PartyXblXboxUserIdToPlayFabEntityIdMapping

> Reference for the PartyXblXboxUserIdToPlayFabEntityIdMapping struct that pairs an XBOX Live user ID with its linked PlayFab Party entity ID.

Mapping between an XBOX Live User Id and a PlayFab Entity Id.

## Syntax

```cpp theme={null}
struct PartyXblXboxUserIdToPlayFabEntityIdMapping {  
    uint64_t xboxLiveUserId;  
    PartyString playfabEntityId;  
}  
```

### Members

**`xboxLiveUserId`**   uint64\_t

The XBOX Live User Id.

**`playfabEntityId`**   [PartyString](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/typedefs.md)

The PlayFab Entity Id.

This value may be an empty string in the case where the XBOX Live user does not have a linked 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.

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXboxLive members](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/partyxboxlive_members.md)


## Related topics

- [PartyXblGetEntityIdsFromXboxLiveUserIdsCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblgetentityidsfromxboxliveuseridscompletedstatechange.md)
- [PartyXboxLive C/C++ API overview](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/partyxboxlive_members.md)
- [Xbox Live helper library for PlayFab Party](https://docs.xbox.com/services/playfab/multiplayer/networking/party-xbox-live-guide.md)
- [PartyXblChatUser::GetXboxUserId](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getxboxuserid.md)
- [PartyXblManager::GetEntityIdsFromXboxLiveUserIds](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_getentityidsfromxboxliveuserids.md)
