KSC Open API
Kaspersky Security Center API description
int SecurityPolicy::AddUser ( params  pUser)

Add new user.

Parameters:
pUser(params) user info, containing attributes "KLSPL_USER_*" (see List of user attributes). Following attributes are required:
Returns:
(int) user identifier
Note:
When adding users and security groups the behavior depends on the LP_InterUserUniqVsScope limit
Exceptions:
KLSPL::SPLERR_USER_ALREADY_EXISTSa user with such name already exists, see Some error definitions
See also:
Sample. Creates and finds an internal user.