ManagementGroup.GetUserRolesForOperationAndUser Method (Guid, String)

System Center
 

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)

[ObsoleteAttribute("Please use Security.GetUserRolesForOperationAndUser()")]
public ReadOnlyCollection<Guid> GetUserRolesForOperationAndUser(
	Guid operationId,
	string userName
)

Parameters

operationId
Type: System.Guid

User role identifiers that grant access to this operation.

userName
Type: System.String

User 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.

Return to top
Show: