Create a new user
Creates the user for the companyId identified in the path.
To make this request, your API credential must have the following role:
- Management API—Users read and write
In: header
Path Parameters
The unique identifier of the company account.
Request Body
application/json
The list of account groups associated with this user.
The list of merchant accounts associated with this user.
The email address of the user.
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
The user's full name.
Allowed length: 1—80 characters.
1 <= length <= 80The list of roles for this user.
The tz database name of the time zone of the user. For example, Europe/Amsterdam.
The user's email address that will be their username. Must be the same as the one in the email field.
1 <= length <= 255Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/companies/string/users" \ -H "Content-Type: application/json" \ -d '{ "name": { "firstName": "John", "lastName": "Smith" }, "username": "johnsmith", "email": "john.smith@example.com", "loginMethod": "Email", "timeZoneCode": "Europe/Amsterdam", "roles": [ "Merchant standard role", "Merchant admin" ], "associatedMerchantAccounts": [ "YOUR_MERCHANT_ACCOUNT" ] }'Example response after creating a user on the company level
{ "id": "S2-5C334C6770", "name": { "firstName": "John", "lastName": "Smith" }, "email": "john.smith@example.com", "timeZoneCode": "Europe/Amsterdam", "username": "johnsmith", "roles": [ "Merchant standard role", "Merchant admin" ], "active": true, "_links": { "self": { "href": "https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/users/S2-5C334C6770" } }, "associatedMerchantAccounts": [ "YOUR_MERCHANT_ACCOUNT" ]}Get a list of users GET
Returns the list of users for 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
Get user details GET
Returns 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
