Skip To Content

Update User

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

ParameterDetails
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

PropertiesDetails
username

The name of the user. The name must be unique in the user store.

Example

"username": "jwhite"
password

The password of the user.

Example

"password": "secret"
fullname

An optional full name for the user.

Example

"fullname": "Jill White"
description

An optional field to add comments or a description for the user account.

Example

"description": "A platinum customer for 10 years"
email

An optional e-mail address for the user account.

Example

"email": "jwhite@email.com"

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"}