Specifies one or more roles for a given user. This method overwrites any previously assigned roles for the user.
<HsvSecurityAccess>.SetRolesForUser bstrUserSid, varalRoleIds
Long array (ByVal). The IDs of the roles. For a list of valid role IDs, see Role ID Constants. |
The following example assigns the specified roles to a given username. The user’s security identifier is obtained with GetUserSID.