---
updatedAt: 2026-05-27T12:47:57.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Update User

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

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Platform - Access Management",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "description": "The Access Management APIs enable you to programmatically control user access, manage organizational hierarchies, and monitor authentication activities across your OneTrust platform."
  },
  "servers": [
    {
      "url": "https://{hostname}",
      "variables": {
        "hostname": {
          "default": "hostname",
          "description": "The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Users V2",
      "description": "APIs to manage users and their memberships and access levels.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/platform-access-management.json"
      },
      "x-displayName": "Users V2"
    }
  ],
  "paths": {
    "/api/access/v2/users/{userId}": {
      "put": {
        "operationId": "updateUserV2",
        "summary": "Update User",
        "description": "Use this API to update the details for a single user in your account.",
        "tags": [
          "Users V2"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/platform-access-management.json"
        },
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The unique identifier of the user.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "c01233a5-482c-4274-8f88-15e24c1c96a4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Platform-AccessManagement_PublicOrgUserUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "User updated successfully"
          },
          "400": {
            "description": "Invalid request data"
          },
          "401": {
            "description": "Unauthorized - Invalid or missing authentication"
          },
          "403": {
            "description": "Forbidden - Insufficient permissions"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "Platform-AccessManagement_OAUTH2": [
              "USER"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Platform-AccessManagement_PublicAccessLevelCreateRequest": {
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "The unique identifier of the organization.",
            "type": "string",
            "format": "uuid",
            "example": "323e4567-e89b-12d3-a456-426614174000"
          },
          "roleIds": {
            "description": "The list of role identifiers to be associated with the organization.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "example": "550e8400-e29b-41d4-a716-446655440000",
              "minItems": 1
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "defaultOrganization": {
            "description": "The indicator of whether the provided organization will be treated as the default organization.",
            "type": "boolean",
            "example": true,
            "default": "false"
          }
        },
        "required": [
          "organizationId"
        ]
      },
      "Platform-AccessManagement_PublicOrgUserUpdateRequest": {
        "type": "object",
        "properties": {
          "firstName": {
            "description": "The first name of the user.",
            "type": "string",
            "example": "Michael",
            "maxLength": 100,
            "minLength": 0
          },
          "lastName": {
            "description": "The last name of the user.",
            "type": "string",
            "example": "Douglas",
            "maxLength": 100,
            "minLength": 0
          },
          "internal": {
            "description": "The indicator of whether the user is an internal user.",
            "type": "boolean",
            "example": true,
            "default": "false"
          },
          "expirationDateTime": {
            "description": "User expiration date in the system",
            "type": "string",
            "format": "date-time",
            "example": "2029-05-01T12:34:56Z"
          },
          "externalId": {
            "description": "The external identifier for the user.",
            "type": "string",
            "example": "1A2234-abc",
            "maxLength": 128,
            "minLength": 0
          },
          "accessLevels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Platform-AccessManagement_PublicAccessLevelCreateRequest"
            },
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "required": [
          "firstName",
          "lastName"
        ]
      }
    },
    "securitySchemes": {
      "Platform-AccessManagement_OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "ORGANIZATION": "Grants full access to manage organizations. This includes Create, Read, Update and Delete operations.",
              "USER": "Grants full access to manage Users, User Groups and User Group membership. This includes Create, Read, Update and Delete operations."
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0"
  }
}
```

# Sibling pages

* [Get List of Users](https://developer.onetrust.com/onetrust/reference/getalluserdetailsv2.md)
* [Create User](https://developer.onetrust.com/onetrust/reference/createuserv2.md)
* [Get User](https://developer.onetrust.com/onetrust/reference/getuserv2.md)
* [Get User Roles](https://developer.onetrust.com/onetrust/reference/getuseraccesslevelsv2.md)
* [Add User Role](https://developer.onetrust.com/onetrust/reference/adduseraccesslevelv2.md)
* [Remove User Role](https://developer.onetrust.com/onetrust/reference/removeuseraccesslevelv2.md)
* [Modify User Default Organization](https://developer.onetrust.com/onetrust/reference/setuserdefaultorganizationv2.md)