KSC Open API
Kaspersky Security Center API description
SecurityPolicy3::AddUserIntoSecurityGroup ( int  lUserId,
int  lGrpId 
)

Adds user into a security group.

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

A user located on a virtual server can be added only into a group located on this virtual server, otherwise a error occurs.

A user located on a main server can be added only into a group located on this main server, otherwise a error occurs.

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