- Required Capability:Publisher or Administrator
- Version Introduced:10.1
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.
- 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.
Permission JSON Format
Description: The name of the role for whom the permission is being assigned.
Description: Tells if access to a resource is allowed or denied.
Values: true | false
Description: The response format. The default response format is html.
Values: html | json
http://server:port/arcgis/admin/services/Maps/permissions/add "principal": "Analysts", "isAllowed": true;