ManagementUsersUsers 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:

  • Management API—Users read and write

Authorization

AuthorizationBasic <token>

In: header

Path Parameters

companyId*string

The unique identifier of the company account.

userId*string

The unique identifier of the user.

Request Body

application/json

accountGroups?array<string>

The list of account groups associated with this user.

active?boolean

Indicates whether this user is active.

associatedMerchantAccounts?array<string>

The list of 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: Username & account, Email, or SSO

name?

The user's full name.

Length1 <= length <= 80
roles?array<string>

The list of roles for this user.

timeZoneCode?string

The tz database name of the time zone of the user. For example, Europe/Amsterdam.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/companies/string/users/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "_links": {    "self": {      "href": "string"    }  },  "accountGroups": [    "string"  ],  "active": true,  "apps": [    "string"  ],  "associatedMerchantAccounts": [    "string"  ],  "email": "string",  "id": "string",  "name": {    "firstName": "string",    "lastName": "string"  },  "roles": [    "string"  ],  "timeZoneCode": "string",  "username": "string"}