---
title: "Update User"
method: PUT
path: "/api/access/v2/users/{userId}"
tags: ["Users V2"]
---

# Update User

`PUT /api/access/v2/users/{userId}`

Use this API to update the details for a single user in your account.

## Path parameters

- `userId` string, uuid, required

## Request body

- PlatformAccessManagementPublicOrgUserUpdateRequest
  - `firstName` string, required — The first name of the user.
  - `lastName` string, required — The last name of the user.
  - `internal` boolean — The indicator of whether the user is an internal user.
  - `expirationDateTime` string, date-time — User expiration date in the system
  - `externalId` string — The external identifier for the user.
  - `accessLevels` PlatformAccessManagementPublicAccessLevelCreateRequest[]
    - `organizationId` string, uuid, required — The unique identifier of the organization.
    - `roleIds` string[] — The list of role identifiers to be associated with the organization.
    - `defaultOrganization` boolean — The indicator of whether the provided organization will be treated as the default organization.

## Response `200`

User updated successfully

## Other responses

- `400` — Invalid request data
- `401` — Unauthorized - Invalid or missing authentication
- `403` — Forbidden - Insufficient permissions
- `429` — Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500` — Internal Server Error

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
