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)

public:
[ObsoleteAttribute("Please use Security.GetUserRolesForOperationAndUser()")]
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: