ArcObjects Library Reference (Server)  

IPermissionsAdmin.AllowPermission Method

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

[Visual Basic .NET]
Public Sub AllowPermission ( _
    ByVal Principal As String, _
    ByVal resource As String, _
    ByVal operation As String _
)
[C#]
public void AllowPermission (
    string Principal,
    string resource,
    string operation
);
[C++]
HRESULT AllowPermission(
  BSTR Principal,
  BSTR resource,
  BSTR operation
);
[C++]

Parameters

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.

Remarks

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 AllowPermissions method to allow a principal access to perform any operation on a specified resource. Once the allow permission has been granted, it can be removed explicitly using the DenyPermissions method or implicitly through the continuous inheritance model.

See Also

IPermissionsAdmin Interface