FRAMES | NO FRAMES | Description | Parameters | Example |
URL: | http://server:port/arcgis/admin/security/roles/add |
---|---|
HTTP Method: | POST |
Parent Resource: | Roles |
Required Privileges: | Administrator |
Add a role to the role store. This operation is
available only when the role store is a read-write store such as the
default ArcGIS Server store.
If the name of the role exists in the role store, an error will be returned.
Parameter | Description |
---|---|
rolename | The name of the role. The name must be unique in the role store. |
description | An optional field to add comments or a description for the role. |
f | The response format. The default response format is html. Values: html | json |
The above parameters can also be provided in JSON format and submitted as a value to role parameter.
role={ "rolename":"<rolename>", "description":"<description>", }
http://server:port/arcgis/admin/security/roles/add username=editors description=Group of users that can edit maps.