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

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

IPermissionsAdmin.DenyPermission Method

Revokes permission from the specified principal to perform the given operation on the indicated resource.

[Visual Basic .NET]
Public Sub DenyPermission ( _
    ByVal Principal As String, _
    ByVal resource As String, _
    ByVal operation As String _
public void DenyPermission (
    string Principal,
    string resource,
    string operation
HRESULT DenyPermission(
  BSTR Principal,
  BSTR resource,
  BSTR operation
Principal [in]

Principal is a parameter of type BSTR 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.


When using role-based security in ArcGIS Server, security for resources (GIS Services and folders containing GIS Services) is managed by allowing or denying a principal permissions for all operations on a resource.

Use the DenyPermissions method to deny a principal access to perform any operation on a specified resource.  Once the permission has been revoked, it can be restored explicitly using the AllowPermissions method or implicitly through the continuous inheritance model.

See Also

IPermissionsAdmin Interface