FRAMES | NO FRAMES Description | Parameters | Example
URL:http://server:port/arcgis/admin/services/[<folder>]/[<serviceName.serviceType>]/permissions/add
HTTP Method:POST
Parent Resource:Permissions
Required Privileges:Publisher or Administrator

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.

Warning:

Parameters

Permission JSON Format Description
principal The name of the role for whom the permission is being assigned.
isAllowed Tells if access to a resource is allowed or denied.
Values: true | false
General Paramters Description
f The response format. The default response format is html.
Values: html | json

Example

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