check_accessors

To get the list of access rights to the units of subordinate users, use the core/check_accessors method.

Copied!
svc=core/check_accessors&params={
    "items": [<long>],
    "flags": <long>
}

Parameters

Name Description
items Array of unit IDs. Units to which you have no View object and its basic properties access right are skipped.
flags The flag used for adding the dacl parameter to the response:
  • 1 — add;
  • 0 — don’t add.

Response

If the request is completed successfully, a response of the following format is returned:

Copied!
{
    "<unit_id>": {          /* Unit ID. */
        "<acc_id>": {       /* User ID. */
            "acl": <long>,  /* Inherited unit access rights that are superimposed by a mask over direct access rights; if something is prohibited according to the inherited access rights, it is prohibited according to the resulting access rights as well. */
            "dacl": <long>  /* If flags:1 is set, the direct access rights to the unit (from the unit owner). */
        },
        ...                 /* Other user IDs (if any). */
    },
    ...                     /* Other unit IDs (if requested). */
}

If the request fails, an error code is returned.

Error codes

Error code Description
4 Wrong input parameters.
7 Failed to fetch the user.

If you find a mistake in the text, please select it and press Ctrl+Enter.