PermissionCheckBatchResponse (JSON)
PermissionCheckBatchResponse
PermissionCheckBatchResponse 对象具有以下规范。
成员 | 类型 | 说明 |
---|---|---|
响应 | PermissionCheckBatchUserResponse (JSON) 的数组 | 必需。 在原始请求中要求的每个权限的 PermissionCheckBatchUserResponse (JSON) 对象,顺序与该请求相同。 |
示例 JSON 语法
{
"responses":
[
{
"user": {"xuid":"12345"},
"permissions":
[
{
"isAllowed":true
},
{
"isAllowed":true
}
]
},
{
"user": {"xuid":"54321"},
"permissions":
[
{
"isAllowed":false,
"reasons":
[
{"reason":"NotAllowed"}
]
},
{
"isAllowed":false,
"reasons":
[
{"reason":"PrivilegeRestrictsTarget", "restrictedSetting":"AllowProfileViewing"}
]
}
]
}
]
}