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

# XblPermissionDenyReason

> XblPermissionDenyReason

This describes the various ways that we expose to a requestor why a permission check may fail.

## Syntax

```cpp theme={null}
enum class XblPermissionDenyReason  : uint32_t  
{  
    Unknown = 0,  
    NotAllowed = 2,  
    MissingPrivilege = 3,  
    PrivilegeRestrictsTarget = 4,  
    BlockListRestrictsTarget = 5,  
    MuteListRestrictsTarget = 7,  
    PrivacySettingRestrictsTarget = 9,  
    CrossNetworkUserMustBeFriend = 12  
}  
```

## Constants

| Constant | Description |
| - | - |
| Unknown | Permission was denied, but either no reason was given or the privacy service threw an unexpected error. |
| NotAllowed | The request was processed successfully, but the requestor is not allowed to perform the action. No reason is given. |
| MissingPrivilege | The requestor was missing a privilege necessary for the action. |
| PrivilegeRestrictsTarget | A privilege value for the requestor has a restriction that doesn't allow interaction with the target. For instance, a parental control only allows interaction with friends and the target isn't a friend. |
| BlockListRestrictsTarget | The requestor has blocked the target user. |
| MuteListRestrictsTarget | The requestor has muted the target user. |
| PrivacySettingRestrictsTarget | A privacy value for the requester has a restriction that doesn't allow interaction with the target. For instance, a parental control only allows interaction with friends and the target isn't a friend. |
| CrossNetworkUserMustBeFriend | The target is a cross-network user, but cross-network privacy settings indicated only friends are allowed. Cross-network friends are (currently) only managed at the title level, so the title must validate that the user are friends. |

## Member of

* [XblPermissionDenyReasonDetails](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/structs/xblpermissiondenyreasondetails.md)

## Requirements

**Header:** privacy\_c.h

## See also

[privacy\_c](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/privacy_c_members.md)


## Related topics

- [XblPermissionDenyReasonDetails](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/structs/xblpermissiondenyreasondetails.md)
- [privacy_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/privacy_c_members.md)
- [PartyXblChatPermissionMaskReason](https://docs.xbox.com/services/playfab/multiplayer/networking/xblreference/enums/partyxblchatpermissionmaskreason.md)
- [XblPermissionCheckResult](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/structs/xblpermissioncheckresult.md)
- [XblPrivilege](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/enums/xblprivilege.md)
