KSC Open API
Kaspersky Security Center API description
HstAccessControl::ModifyScObjectAcl ( int  nObjId,
int  nObjType,
params  pAclParams,
boolean  bCheckCurrentUserAce 
)

Modifies ACL for the specified object.

Method updates only accounts, permissions, and roles that are presented in pAclParams. To delete ACE from ACL, add it to the 'delete' list.

Parameters:
nObjId(int) object ID.
nObjType(int) object type. See Object types.
pAclParams(params) ACL. See ACL structure 2.
bCheckCurrentUserAce(boolean) if true, then it checks that the user does not reduce his or her rights.