FRAMES | NO FRAMES | Description | Parameters | Examples | Response |
URL | http://<user-url>/update |
---|---|
Parent Resource | User |
Parameter | Details |
---|---|
f | Description: The response format. The default response format is html. Values: html | json |
user | Required Description: The username of the person who makes the update user request. The person must have "AdministratorAccess" privilege to update any user's properties or have "CanUpdateUserProfile" privilege to update his/her own properties. |
properties | Required Description: A JSON object containing the user property values to update. At least one parameter from the list in below needs to be specified to update.
Syntax: { "fullName":"<fullName>", "firstName":"<firstName>", "lastName":"<lastName>", "email":"<email>", "address":"<address>", "zipCode":"<zipCode>", "roomNumber":"<roomNumber>", "phoneNumber":"<phoneNumber>", "faxNumber":"<faxNumber>" } |
Example 1: URL for updating user "cjones" email in the "Workflow" service on sampleserver. The person who makes the request is "admin0000".
http://sampleserver/arcgis/rest/services/Workflow/WMServer/community/users/cjones/update?user=admin0000&properties={"email":"cjones@wmx.com"}&f=pjsonExample 2: URL for updating user "cjones" all properties in the "Workflow" service on sampleserver. The person who makes the request is "admin0000".
http://sampleserver/arcgis/rest/services/Workflow/WMServer/community/users/cjones/update?user=admin0000&properties={"fullname":"UpdateFullName","firstName":"UpdateFirstName","lastName":"UpdateLastName","email":"UpdateEmail","address":"UpdateAddress","roomNumber":"UpdateRoomNumber","zipcode":"UpdateZipCode","phonenumber":"UpdatePhoneNumber","faxnumber":"UpdateFaxNumber"}&f=pjsonExample 3: URL for "cjones" to update her own email and zipcode in the "Workflow" service on sampleserver. The user "cjones" has "CanUpdateUserProfile" privilege.
http://sampleserver/arcgis/rest/services/Workflow/WMServer/community/users/cjones/update?user=cjones&properties={"email":"cjones1234@wmx.com","zipCode":"92373"}&f=pjson{ "success": true }
{ "success": true }