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,
  IEnumBSTR** ppEnum
);
[C++]

Parameters

resource [in]   resource is a parameter of type BSTR operation [in]   operation is a parameter of type BSTR ppEnum [out, retval]

  ppEnum is a parameter of type IEnumBSTR

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