KSC Open API
Kaspersky Security Center API description
SecurityPolicy3::AddTrusteeIntoSecurityGroup ( long  llTrusteeId,
int  lGrpId 
)

Adds internal or system user into a security group.

If a group or user does not exist, an error occurs. Connection to a virtual server has access only to groups and users which located on this virtual server.

A virtual server user can only be added to a group located on this virtual server; otherwise an error occurs.

A main server user can only be added to a group located on this main server; otherwise an error occurs.

Parameters:
lGrpId(int) id of a group.
llTrusteeId(long long) id of a user.