- URL:https://<users-url>/add
(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.1
Description
This operation adds a user account to the user store. This is available only when the user store is a read-write store such as the default ArcGIS Serverstore. If the name of the user exists in the user store, an error will be returned.
Request parameters
Parameter | Details |
---|---|
username | The name of the user. The name must be unique in the user store. Example
|
password | The password for this user. Example
|
fullname (Optional) | The full name for the user. Example
|
description (Optional) | Adds comments or description for the user account. Example
|
email (Optional) | An email for the user account. Example |
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for add:
POST /webadaptor/admin/security/users/add HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
username=jwhite&password=secret&fullname=John White&description=A platinum customer&[email protected]&f=json
The operation parameters can also be provided in JSON format and submitted as a value to the user parameter.
user={
"username": "<username>",
"password": "<password>",
"fullname": "<fullname>",
"description": "<description>",
"email": "<email>"
}
JSON Response example
{"status": "success"}