ISecurityManagement.UpdateUserRoles(ICollection<UserRole>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.