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

# 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\*](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser)

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

**`chatPermissionInfo`**   [PartyXblChatPermissionInfo\*](/services/playfab/multiplayer/networking/xblreference/structs/partyxblchatpermissioninfo)\
*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()](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_geterrormessage).

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXblLocalChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser)\
[PartyXblCreateLocalChatUserCompletedStateChange](/services/playfab/multiplayer/networking/xblreference/structs/partyxblcreatelocalchatusercompletedstatechange)\
[PartyXblRequiredChatPermissionInfoChangedStateChange](/services/playfab/multiplayer/networking/xblreference/structs/partyxblrequiredchatpermissioninfochangedstatechange)


## Related topics

- [PartyXblRequiredChatPermissionInfoChangedStateChange](/services/playfab/multiplayer/networking/xblreference/structs/partyxblrequiredchatpermissioninfochangedstatechange.md)
- [XBOX Live helper library for PlayFab Party](/services/playfab/multiplayer/networking/party-xbox-live-guide.md)
- [PartyXblLocalChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser.md)
- [PartyXblLocalChatUser::GetAccessibilitySettings](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/methods/partyxbllocalchatuser_getaccessibilitysettings.md)
- [PartyXblChatUser::GetLocal](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getlocal.md)
