Share via


ISecurityManagement.UpdateUserRoles(ICollection<UserRole>) Method

Definition

Updates the roles assigned to a user.

public:
 void UpdateUserRoles(System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Security::UserRole ^> ^ userRoles);
public void UpdateUserRoles (System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Security.UserRole> userRoles);
abstract member UpdateUserRoles : System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Security.UserRole> -> unit
Public Sub UpdateUserRoles (userRoles As ICollection(Of UserRole))

Parameters

userRoles
ICollection<UserRole>

The list of user roles.

Exceptions

The userRoles parameter is a null reference (Nothing in Visual Basic).

The userRoles parameter is empty.

Remarks

Roles contained in the list will be updated or added to the current user. Use the DeleteUserRole or DeleteUserRoles method to delete a role from a user.

Applies to