Export (0) Print
Expand All
Expand Minimize

ManagementGroup.GetUserRolesForOperationAndUser Method

System Center
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)

'Usage
Dim instance As ManagementGroup
Dim operationId As Guid
Dim userName As String
Dim returnValue As ReadOnlyCollection(Of Guid)

returnValue = instance.GetUserRolesForOperationAndUser(operationId, userName)

public ReadOnlyCollection<Guid> GetUserRolesForOperationAndUser (
	Guid operationId,
	string userName
)
public ReadOnlyCollection<Guid> GetUserRolesForOperationAndUser (
	Guid operationId, 
	String userName
)
public function GetUserRolesForOperationAndUser (
	operationId : Guid, 
	userName : String
) : ReadOnlyCollection<Guid>

Parameters

operationId

User role identifiers that grant access to this operation.

userName

User role identifiers that grant access to this user name.

Return Value

A read-only collection of GUIDs that represent the user role identifiers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

Send comments about this topic to Microsoft.
Show:
© 2015 Microsoft