GetConnectedUser2

Returns the security identifier and username of the connected user.

Syntax

<HsvSecurityAccess>.GetConnectedUser2 pbstrUserSID, pbstrName

Argument

Description

pbstrUserSID

String. Returns the user’s security identifier.

pbstrName

String. Returns the username.

Example

GetConnectedUser2 is used in the example for EnumRolesForUser.