ManagementGroup.GetUserRolesForOperationAndUser Method (Guid, String)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Retrieves a collection of all the user role identifiers that grant access to the specified operation and user.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[ObsoleteAttribute("Please use Security.GetUserRolesForOperationAndUser()")]
public ReadOnlyCollection<Guid> GetUserRolesForOperationAndUser(
Guid operationId,
string userName
)
public:
[ObsoleteAttribute("Please use Security.GetUserRolesForOperationAndUser()")]
ReadOnlyCollection<Guid>^ GetUserRolesForOperationAndUser(
Guid operationId,
String^ userName
)
[<ObsoleteAttribute("Please use Security.GetUserRolesForOperationAndUser()")>]
member GetUserRolesForOperationAndUser :
operationId:Guid *
userName:string -> ReadOnlyCollection<Guid>
<ObsoleteAttribute("Please use Security.GetUserRolesForOperationAndUser()")>
Public Function GetUserRolesForOperationAndUser (
operationId As Guid,
userName As String
) As ReadOnlyCollection(Of Guid)
Parameters
operationId
Type: System.GuidUser role identifiers that grant access to this operation.
userName
Type: System.StringUser role identifiers that grant access to this user name.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<Guid>
Returns aReadOnlyCollection<T>of GUIDs that represent the user role identifiers.
See Also
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace
Return to top