---
title: "Edit a user"
method: PUT
path: "/restapi/json/v1/user/{userId}"
tags: ["Users"]
---

# Edit a user

`PUT /restapi/json/v1/user/{userId}`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/user/{userId}`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/user/:userId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing user's details in PAM360 using the user ID.

## Path parameters

- `userId` integer, required

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- EditApiUserRequest
  - `operation` object
    - `Details` object: All fields are optional for edit. Only provided fields will be updated.
      - `FIRSTNAME` string: User's first name
      - `LASTNAME` string: User's last name
      - `EMAIL` string, email: Primary email address
      - `SECONDARYEMAILID` string, email: Alternate email address
      - `ROLE` string: Role assigned to the user
      - `ROLEID` integer: Numeric role identifier
      - `DEPARTMENT` string: Department the user belongs to
      - `LOCATION` string: Physical work location
      - `USERGROUPNAME` string: User group to assign the user to
      - `ISSUPERADMIN` boolean: Whether the user has super admin privileges
      - `POLICY` string: Password policy to enforce for the user
      - `PASSWORD` string: New password for the user
      - `WEBACCESS` boolean: Enables PAM360 web access for the user
      - `RESTAPIACCESS` boolean: Enables REST API access for the user
      - `SDKACCESS` boolean: Enables SDK access for the user
      - `ENABLEMOBILEACCESS` boolean: Enables mobile access for the user
      - `ENABLEADDONACCESS` boolean: Enables browser extension access for the user
      - `REMOTECONNECTACCESS` boolean: Enables remote connection access for the user
      - `REMOTECONNECTVIASSHPROXY` boolean: Enables SSH proxy-based remote connection
      - `LANGUAGECODE` string: UI language preference
      - `ENABLETWOFACTOR` boolean: Enables two-factor authentication for the user
      - `ISAPIUSER` boolean: Whether the user is a strict REST API-only user
      - `OWNERNAMEOPTION` boolean: Allows the user to create resources for another user
      - `EXPIRYDATE` string: Account deactivation date (YYYY-MM-DD format)
      - `TOKENVALIDITYDAYS` integer: Validity period (in days) for authentication tokens
      - `HOSTCHECK` boolean: Enables hostname validation for API access
      - `HOSTNAME` string: Hostname from which the user can access PAM360
      - `RSAUSERNAME` string: RSA SecurID username
      - `RADIUSUSERNAME` string: RADIUS authentication username
      - `PHONEFACTOR_USERNAME` string: Phone-based MFA username
      - `DUOUSERNAME` string: Duo Security username
      - `PRIMARYCONTACT` string: Preferred communication method
      - `MOBILE_COUNTRYCODE` string: International dialing prefix for mobile
      - `MOBILE` string: Mobile phone number
      - `LANDLINE` string: Landline phone number
      - `LANDLINE_COUNTRYCODE` string: Country code for landline
      - `LANDLINE_EXT` string: Landline extension number

## Response `200`

User updated

- EditUserResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `Details` object
      - `AUTHTOKEN` string: Authentication token for the user, if regenerated as part of the update.
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
