KSC Open API  13.1
Kaspersky Security Center API description
boolean SecurityPolicy::GetCurrentUserId ( [out] int  lUserId)

Acquire current internal user id.

Parameters:
lUserId(int) current user id if it is internal, -1 otherwise
Returns:
(boolean) true if current user is internal user