<HsvSecurityAccess>.RemoveUserFromRole2 lRoleID, bstrUserSID
Long (ByVal). The ID of the role from which to remove the user. 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 removes a user from a given role. The role name is passed to the subroutine, which uses GetRoleID to obtain the role ID.