Has Child Permissions Conflict

Description

You can invoke this operation on the resource (folder or service) to determine if this resource has a child resource with opposing permissions. This operation is typically invoked before adding a new permission to determine if the new addition will overwrite existing permissions on the child resources.

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

Since this operation basically checks if the permission to be added will cause a conflict with permissions on a child resource, this operation takes the same parameters as the Add Permission operation.

NoteNote:

This operation only tests the current permissions and does not change any existing permissions.

Parameters

Permission JSON Format

Description

principal

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

permission

The permission JSON object. The format is described below.

Format:

{

"isAllowed": <true|false>,

"constraint": ""

}

General Parameters

Description

f

The response format. The default response format is html.

Values: html | json

Response Format

{
		"hasChildPermissionsConflict":<true|false>
	}

Example

http://server:port/arcgis/admin/services/Maps/permissions/hasChildPermissionsConflict
				
	permission={ 
		"principal": "Analysts", 
		"permission": { 
			"isAllowed": true; 
			"constraint": "" 
		}, 
		"childURL": "", 
		"operation": "" 
	}

3/3/2017