IPermissionsAdmin2 Interface

Provides administrative access to the Permissions Store.

Description

IPermissionsAdmin2 provides methods to Allow and Deny operations on ArcGIS for Server resources and to retrieve all principals with access to resources. Additionally, it provides a method to remove all permissions on all resources for a particular principal.

The IPermissionsAdmin2 interface can be obtained by a query interface with the IServerObjectAdmin interface.

When To Use

Use the IPermissionsAdmin2 interface when your application needs to clear all permissions on all resources for a specific principal.

If your application is connecting to the server only to retrieve information about the current state of permissions on ArcGIS for Server GIS resources, use the IPermissionsManager interface instead.

Members

Name Description
Method AllowPermission Grants permission to the specified principal to perform the given operation on the indicated resource.
Method CleanPermissions Removes all permissions for a particular principal.
Method DenyPermission Revokes permission from the specified principal to perform the given operation on the indicated resource.
Method GetAllPrincipals Enumrates all princiapls in the Permissions Store.

IPermissionsAdmin2.CleanPermissions Method

Removes all permissions for a particular principal.

Public Sub CleanPermissions ( _
    ByVal Principal As String _
)
public void CleanPermissions (
    string Principal
);

Remarks

Use the CleanPermissionsmethod to delete all allow/deny rules from all resources associated with the specified principal.

Inherited Interfaces

Interfaces Description
IPermissionsAdmin Provides administrative access to the Permissions Store.

Classes that implement IPermissionsAdmin2

Classes Description
ServerObjectAdmin The ServerObjectAdmin object which administrates the GIS Server.

Remarks

The following administration functionality of the ArcGIS Server is exposed by the methods of IPermissionsAdmin2:

Administer role-based ArcGIS Server security:

  • Allow permissions on a resource.
  • Deny permissions on a resource.
  • Clean all allow/deny rules from all resources associated with a specific principal.

Get information about the ArcGIS Security mode:

  • Get all principals that have any Allow/Deny rules on any resource.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.