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

NameDescription

items

The array of unit IDs.

flags

The flag used for adding the dact parameter in the returned result:

  • add;
  • 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:

CodeDescription

7

Failed to fetch the user.

4

Wrong input parameters.
Download PDF file
Download Word document

See also