ManagementGroup.GetUserRolesForOperationAndUser(Guid, String) 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.
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 of Guids.
- Attributes