check_accessors
The check_accessors function is used to get the list of access rights to the units of subordinate users.
svc=core/check_accessors¶ms={"items":[<long>],
"flags":<long>}
Parameters
Name | Description |
---|---|
items | The array of unit IDs. |
flags | The flag used for adding the dact parameter in the returned result:
|
Returned result
{
"<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 the flags:1 is set, the access rights to the unit are direct (from the unit owner) */
},
... /* other user IDs (if any) */
},
... /* other unit IDs (if requested) */
}
Possible error codes:
Code | Description |
---|---|
7 | Failed to fetch the user. |
4 | Wrong input parameters. |