<HsvSecurityAccess>.AddUserToRole2 lRoleID, bstrUserSID
Long (ByVal). The ID of the role to which the user is being assigned. For a list of valid role IDs, see Role ID Constants. To get a role’s ID from its name, use GetRoleID. | |
The following subroutine assigns a user to a given role. The role name is passed to the subroutine, which uses GetRoleID to obtain the role ID.