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"}
                    ]
                }
            ]
        }
    ]
}
    

另请参阅

父级

JavaScript 对象表示法 (JSON) 对象参考