KSC Open API  13.1
Kaspersky Security Center API description
array SecurityPolicy::GetUsers ( int  lUserId,
int  lVsId 
)

Acquire existing user properties.

Acquires properties of the specified user, or all users if lUserId==(-1); Connection to a virtual server has access only to users which located on this virtual server.
Connection to a main server has access to users which depends on lVsId:

  • if lVsId==(-1) then users from main server and all the virtual servers will be returned.
  • if lVsId==(0) then users from only main server will be returned.
  • if lVsId>(0) then users from main server and specified virtual server will be returned.
Parameters:
lUserId(int) user id
lVsId(int) virtual server id.
Returns:
(array) users info, an array of containers of attributes "KLSPL_USER_*" (see List of user attributes).