check_accessors
To get the list of access rights to the units of subordinate users, use the core/check_accessors method.
svc=core/check_accessors¶ms={
"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:
|
Response
If the request is completed successfully, a response of the following format is returned:
{
"<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. |