Add Permission

Description

Assigns a new permission to a role (principal). The permission on a parent resource is automatically inherited by all child resources.

For more information on the permissions model, see the section on the Continuous Inheritance Model.

Permissions are represented in JSON format as described in the parameters section. At 10.1 is it only possible to allow or deny access to a resource.

CautionCaution:

  • If a child resource has permissions that oppose the permissions being assigned, its permissions are overwritten with the parent's permission. The permissions on the child become those of its parents.
  • To check if a resource has a child resource with conflicting permissions, use the Has Child Permissions Conflict operation.

Request Parameters

Permission JSON Format

Details

principal

Description: The name of the role for whom the permission is being assigned.

isAllowed

Description: Tells if access to a resource is allowed or denied.

Values: true | false

Parameters

Details

f

Description: The response format. The default response format is html.

Values: html | json

Example Usage

http://server:port/arcgis/admin/services/Maps/permissions/add				
	 
	"principal": "Analysts",
	"isAllowed": true;

7/27/2017