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

# PartyLocalChatControl::GetPermissions

> Gets the voice communication relationship between the local chat control and a target chat control.

Gets the voice communication relationship between the local chat control and a target chat control.

## Syntax

```cpp theme={null}
PartyError GetPermissions(  
    const PartyChatControl* targetChatControl,  
    PartyChatPermissionOptions* chatPermissionOptions  
)  
```

### Parameters

**`targetChatControl`**   [PartyChatControl\*](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/partychatcontrol)

The target chat control.

**`chatPermissionOptions`**   [PartyChatPermissionOptions\*](/services/playfab/multiplayer/networking/reference/enums/partychatpermissionoptions)\
*output*

The output chat permission options.

### 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 [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)


## Related topics

- [Troubleshooting Voice Chat](/services/playfab/community/voice-communications/concepts-audio-troubleshooting.md)
- [PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol.md)
- [PartyLocalChatControl::SetPermissions](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_setpermissions.md)
- [PartyLocalChatControl::SendText](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_sendtext.md)
- [PartyLocalChatControl::GetLocalChatIndicator](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/methods/partylocalchatcontrol_getlocalchatindicator.md)
