Visual Guard Class Library Documentation

VGRolesInstance.RemoveUsersFromRoleById Method 

Removes a list of users specified specified by repository id from the specified role.

public void RemoveUsersFromRoleById(
   String[] userIds,
   Guid roleId
);

Parameters

userIds
An array of repository id identifying the users to remove from the specified roles.
roleId
An array of repository id identifying the roles to remove the specified users from.

Exceptions

Exception Type Condition
ArgumentNullException userIds is null or one of the users is null.
ArgumentException roleIds was not found in the repository for the application.

-or-

userIds contains a duplicate element.

-or-

One of the users was not found in the repository.
SecurityException The current user has not enough privileges to use Membership API. The Membership access level of the application must be sufficient to allows this action or the 'Membership Manager' role must be granted to the user by using the Visual Guard console.

See Also

VGRolesInstance Class | Novalys.VisualGuard.Security.Membership Namespace | RepositoryId | RepositoryId