---
title: "Update user details"
method: PATCH
path: "/companies/{companyId}/users/{userId}"
tags: ["Users - company level"]
---

# Update user details

`PATCH /companies/{companyId}/users/{userId}`

Updates user details for the `userId` and the `companyId` identified in the path.

To make this request, your API credential must have the following [role](https://docs.adyen.com/development-resources/api-credentials#api-permissions):
* Management API—Users read and write

## Path parameters

- `companyId` string, required
- `userId` string, required

## Request body

- UpdateCompanyUserRequest
  - `accountGroups` string[] — The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
  - `active` boolean — Indicates whether this user is active.
  - `associatedMerchantAccounts` string[] — The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with.
  - `email` string — The email address of the user.
  - `loginMethod` string — The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Email** or **SSO**
  - `name` Name2
    - `firstName` string — The first name.
    - `lastName` string — The last name.
  - `roles` string[] — The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
  - `timeZoneCode` string — The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.

## Response `200`

OK - the request has succeeded.

- CompanyUser
  - `_links` Links
    - `self` LinksElement, required
      - `href` string
  - `accountGroups` string[] — The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.
  - `active` boolean — Indicates whether this user is active.
  - `apps` string[] — Set of apps available to this user
  - `associatedMerchantAccounts` string[] — The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user.
  - `email` string, required — The email address of the user.
  - `id` string, required — The unique identifier of the user.
  - `name` Name
    - `firstName` string, required — The first name.
    - `lastName` string, required — The last name.
  - `roles` string[], required — The list of [roles](https://docs.adyen.com/account/user-roles) for this user.
  - `timeZoneCode` string, required — The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.
  - `username` string, required — The username for this user.

## Other responses

- `400` — Bad Request - a problem reading or understanding the request.
- `401` — Unauthorized - authentication required.
- `403` — Forbidden - insufficient permissions to process the request.
- `422` — Unprocessable Entity - a request validation error.
- `500` — Internal Server Error - the server could not process the request.

---

[API](https://skmtc.net/adyen/apis/management-api.md) · [All operations](https://skmtc.net/adyen/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/adyen/management-api/versions/1089ade06e17/schema)
