- URL:https://<users-url>/update(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.1
Description
This operation updates a user account in the user store with new information. This operation is available only when the user store is a read-write store such as the default ArcGIS Server store.
Request parameters
Parameter | Details |
---|---|
user | The user account properties in JSON format. See the user properties table below. |
f | The response format. The default response format is html. Values: html | json | pjson |
User properties
Properties | Details |
---|---|
username | The name of the user. The name must be unique in the user store. Example
|
password | The password of the user. Example
|
fullname | An optional full name for the user. Example
|
description | An optional field to add comments or a description for the user account. Example
|
An optional e-mail address for the user account. Example
|
Example usage
Below is a sample POST request for update, formatted for readability:
POST /webadaptor/admin/security/users/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
user={
"username": "jwhite",
"password": "secret",
"fullname": "Jill White",
"description": "A platinum customer for 10 years",
"email": "jwhite@email.com"
}&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"}