This document is archived and information here might be outdated.  Recommended version.


IPermissionsManager.GetPrincipalsWithPermissionOnResource Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IP > IPermissionsManager Interface > IPermissionsManager.GetPrincipalsWithPermissionOnResource Method
ArcGIS Developer Help

IPermissionsManager.GetPrincipalsWithPermissionOnResource Method

Enumerates all principals having permission to perform the specified operation on the given resource.

[Visual Basic .NET]
Public Function GetPrincipalsWithPermissionOnResource ( _
    ByVal resource As String, _
    ByVal operation As String _
) As IEnumBSTR
[C#]
public IEnumBSTR GetPrincipalsWithPermissionOnResource (
    string resource,
    string operation
);
[C++]
HRESULT GetPrincipalsWithPermissionOnResource(
  BSTR resource,
  BSTR operation
);
[C++]
Parameters
resource [in]

resource is a parameter of type BSTR operation [in]
operation is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Use the GetPrincipalsWithPermissionsOnResource method to query the server object manager for the roles that have permissions for all operations on the indicated resource.

See Also

IPermissionsManager Interface