KSC Open API  13.1
Kaspersky Security Center API description
params HstAccessControl::UpdateRole ( int  nId,
params  pRoleData,
boolean  bProtection 
)

Updates the user's role.

Parameters:
nId(int) role ID.
pRoleData(params) role parameters. KLHST_ACL_ROLE_NAME is required. See Role.
bProtection(boolean) if true, then it checks that the user does not reduce his or her rights.
Returns:
(params) role parameters (GUID, ID, display name) in the following format:
+--- (PARAMS_T)
     +---KLHST_ACL_ROLE_DN = (STRING_T)<display name>
     +---KLHST_ACL_ROLE_ID = (INT_T)<id>
     +---KLHST_ACL_ROLE_NAME = (STRING_T)<guid>