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


IPermissionsManager.GetPrincipalsWithPermissionOnResource Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Server)  

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