ManagementGroup.GetUserRolesForOperationAndUser(Guid, String) Method

Definition

Caution

Please use Security.GetUserRolesForOperationAndUser()

Gets all the user role ids that grant access to the operation and user.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Guid> ^ GetUserRolesForOperationAndUser(Guid operationId, System::String ^ userName);
[System.Obsolete("Please use Security.GetUserRolesForOperationAndUser()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Guid> GetUserRolesForOperationAndUser (Guid operationId, string userName);
member this.GetUserRolesForOperationAndUser : Guid * string -> System.Collections.ObjectModel.ReadOnlyCollection<Guid>
Public Function GetUserRolesForOperationAndUser (operationId As Guid, userName As String) As ReadOnlyCollection(Of Guid)

Parameters

operationId
Guid

Operation id being queried.

userName
String

User being queried.

Returns

ReadOnlyCollection<Guid>

ReadOnlyCollection of Guids.

Attributes

Applies to