Compartir a través de


PermissionCheckBatchResponse (JSON)

The results of a batch permission check for a list of permission values for multiple users.

PermissionCheckBatchResponse

The PermissionCheckBatchResponse object has the following specification.

Member Type Description
Responses Array of PermissionCheckBatchUserResponse (JSON) Required. A PermissionCheckBatchUserResponse (JSON) object for each permission that was asked for in the original request, in the same order as in that request.

Sample JSON syntax

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

See also

Parent

JavaScript Object Notation (JSON) Object Reference