This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IP > IPermissionsManager Interface > IPermissionsManager.GetPrincipalsWithPermissionOnResource Method (ArcObjects .NET 10.4 SDK) |
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
Use the GetPrincipalsWithPermissionsOnResource method to query the server object manager for the roles that have permissions for all operations on the indicated resource.