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

# PermissionCheckResponse (JSON)

> PermissionCheckResponse (JSON)

# PermissionCheckResponse (JSON)

單一使用者針對單一目標使用者檢查單一權限設定的結果。

<a id="ID4EN" />

## PermissionCheckResponse

PermissionCheckResponse 物件具有下列規格。

| 成員 | 類型 | 描述 |
| - | - | - |
| IsAllowed | 布林值 | 必要。如果允許提出要求的使用者對目標使用者執行所要求的動作，此成員為 <b>true</b>。 |
| Results | [PermissionCheckResult (JSON)](/zh-TW/reference/live/rest/json/json-permissioncheckresult) 陣列 | 選用。如果 <b>IsAllowed</b> 為 false，且檢查因與要求者相關的原因而遭拒，則指出權限遭拒的原因。 |

<a id="ID4E3B" />

## 範例 JSON 語法

```json theme={null}
{
    "isAllowed": false,
    "reasons":
    [
        {"reason": "BlockedByRequestor"},
        {"reason": "MissingPrivilege", "restrictedSetting": "VideoCommunications"}
    ]
}
    
```

<a id="ID4EFC" />

## 另請參閱

<a id="ID4EHC" />

##### 上層

[JavaScript Object Notation (JSON) 物件參考](/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json)


## Related topics

- [XblPermissionCheckResult](/reference/live/xsapi-c/privacy_c/structs/xblpermissioncheckresult.md)
- [XblPrivacyCheckPermissionAsync](/reference/live/xsapi-c/privacy_c/functions/xblprivacycheckpermissionasync.md)
