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

# PartyXblLocalChatUser::GetRequiredChatPermissionInfo

> Gets the cached required chat permission information related to a target chat user.

Gets the cached required chat permission information related to a target chat user.

## Syntax

```cpp theme={null}
PartyError GetRequiredChatPermissionInfo(  
    const PartyXblChatUser* targetChatUser,  
    PartyXblChatPermissionInfo* chatPermissionInfo  
)  
```

### Parameters

**`targetChatUser`**   [PartyXblChatUser\*](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser.md)

The chat user for which permissions relative to the local chat user should be retrieved.

**`chatPermissionInfo`**   [PartyXblChatPermissionInfo\*](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblchatpermissioninfo.md)\
*output*

The output chat permission info object. The chat permission info object contains the most permissive chat permission possible while still respecting XBOX Live requirements.

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

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXblLocalChatUser](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser.md)\
[PartyXblCreateLocalChatUserCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblcreatelocalchatusercompletedstatechange.md)\
[PartyXblRequiredChatPermissionInfoChangedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblrequiredchatpermissioninfochangedstatechange.md)


## Related topics

- [PartyXblRequiredChatPermissionInfoChangedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/structs/partyxblrequiredchatpermissioninfochangedstatechange.md)
- [Xbox Live helper library for PlayFab Party](https://docs.xbox.com/services/playfab/multiplayer/networking/party-xbox-live-guide.md)
- [PartyXblLocalChatUser](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser.md)
- [PartyXblLocalChatUser::GetAccessibilitySettings](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/methods/partyxbllocalchatuser_getaccessibilitysettings.md)
- [PartyXblLocalChatUser::GetCrossNetworkCommunicationPrivacySetting](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/methods/partyxbllocalchatuser_getcrossnetworkcommunicationprivacysetting.md)
