---
title: "Update a user"
method: PUT
path: "/scim/v2/Users/{id}"
tags: ["SCIM"]
---

# Update a user

`PUT /scim/v2/Users/{id}`

Updates an existing user resource, overwriting all values for a user even if an attribute is empty or not provided.
If an attribute that had been set previously is left blank during a PUT operation, the new value will be blank in accordance with the data type of the attribute and the storage provider.
Deactivated users can be re-enabled by setting the active attribute to true. The value of the <id> should be the user's corresponding user ID.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string
- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string

## Request body

- object
  - `schemas` string[]
  - `id` string, nullable
  - `externalId` string
  - `meta` object
    - `created` string, date-time
    - `resourceType` string
    - `location` string
  - `userName` string
  - `name` object
    - `formatted` string
    - `familyName` string
    - `givenName` string
  - `displayName` string
  - `preferredLanguage` string
  - `locale` string
  - `active` boolean
  - `emails` object[]
    - `value` string
  - `groups` object[]
    - `value` string
    - `display` string
  - `roles` object[]
    - `value` string
    - `display` string
  - `urn:zuora:scim:schemas:1.0:UserExtension` object
    - `schemas` string[]
    - `organizationId` string
    - `status` string
    - `ssoEnabled` boolean
    - `region` string

## Response `200`

OK

- object
  - `id` string — The unique identifier for the user resource.
  - `userName` string — The user’s unique username.
  - `displayName` string — The display name of the user, typically used in user interfaces.
  - `active` boolean — Indicates whether the user account is currently active.
  - `emails` object[]
    - `value` string — The email address of the user.
    - `primary` boolean — Indicates whether this email address is the primary email for the user.
  - `meta` object
    - `resourceType` string — The type of resource, e.g., 'User'.
    - `created` string, date-time — The date and time when the user resource was created.
    - `lastModified` string, date-time — The date and time when the user resource was last modified.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
