check_accessors

The check_accessors function is used to get the list of access rights to the units of subordinate users.

Copied!
svc=core/check_accessors&params={"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:
  • 1 — add;
  • 0 — don’t add.

Returned result

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 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.

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