---
title: "Add a web user"
description: "Create a new web user for one or more merchant accounts."
url: "https://docs.adyen.com/account-management-api/manage-user-accounts/addwebuser"
source_url: "https://docs.adyen.com/account-management-api/manage-user-accounts/addwebuser.md"
canonical: "https://docs.adyen.com/account-management-api/manage-user-accounts/addwebuser"
last_modified: "2019-12-11T14:33:00+01:00"
language: "en"
---
# Add a web user
Create a new web user for one or more merchant accounts.
[View source](/account-management-api/manage-user-accounts/addwebuser.md)
Use the `/addWebUser` endpoint to create a new web user associated with one or more merchant accounts. If the request does not include any merchant codes, the web user is created, but not activated.
## Request parameters
To create a new web user, make a POST `/addWebUser` specifying:
| Name | | Type | Required | Description |
| ------------------- | -------------- | ------ | ------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `email` | | String |  | The email address associated with the user account. |
| `merchantCodes` | | Array |  | An array of merchant code strings. A merchant code string holds a value to identify a merchant.Format:- Either: `MerchantAccount.Merchant_Code`
- Or: `Merchant_Code` |
| `accountGroupCodes` | | Array |  | An array of [account group names](/account/account-structure#account-groups). For example: `["groupEU", "groupUS"]`. |
| `timeZoneCode` | | String |  | The time zone associated to the user account profile.If you do not specify any value, the active user's time zone settings are used instead. |
| `userName` | | String |  | A user name string holds the user account display name. It can include:- Digits: *0-9*
- Letters *a-z*, *A-Z*
- Special characters: "*.*" (dot), "*-*" (hyphen), "*\_*" (underscore)* * |
| `name` | | Object |  | A container object for personal data. This object contains:- `firstName`
- `lastName` |
| | \|-`firstName` | String |  | The first name/given name of the user.- Max. length: 80 characters |
| | \|-`lastName` | String |  | The last name/family name of the user.- Max. length: 80 characters |
| `roles` | | Array |  | A container object for types of role for the account user.- `RoleType` |
| | `RoleType` | Enum |  | It defines the type of role assigned to the user account. Some examples of roles are:- `Merchant_standard_role`
- `Merchant_manage_payments`
- `Merchant_Report_role`
- `Merchant_dispute_management`
- `Merchant_technical_integrator`
- `Merchant_View_Risk_Results_role`
- `Merchant_view_risk_settings`
- `Merchant_change_risk_settings`
- `Merchant_allowed_own_password_reset` |
## Response parameters
If there are no errors in the request, the call returns user name and password for the newly created user account, and a `pspReference`.
If any issues occur during the process, the call returns one or more warning or error messages. In this case, no user name and no password data is included in the response.
| Name | Type | Returned by default | Description |
| -------------- | ------ | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `userName` | String |  | The user name assigned to the newly created account. |
| `password` | String |  | The password assigned to the newly created account. This is a temporary, one-time password. Users need to define a new one upon their first successful login. |
| `pspReference` | String |  | A reference to uniquely identify the request. |
| `warnings` | Array |  | List containing one or more warning messages. Returned when the request is not correctly processed. |
| `errors` | Array |  | List containing one or more error messages. Returned when the request fails. |
## Examples
### Request
#### JSON
```json
{
"email":"test@test.nl",
"merchantCodes":[
"MerchantAccount.TestMerchant",
],
"name":{
"firstName":"Jane",
"lastName":"Doe"
},
"timeZoneCode":"UTC",
"userName":"test"
}
```
#### Soap
```xml
test@test.nl
MerchantAccount.TestMerchant
Jane
Doe
UTC
test
```
### Response
#### JSON
```json
{
"pspReference":"9914526950450289",
"password": "*******",
"userName": "testuser"
}
```
#### Soap
```xml
9914526950450289
*******
testuser
```
### Response in case of an error
#### JSON
```json
{
"pspReference":"9914368689030052",
"errors":[
"8_008 lacks permission to merchant 'TestMerchantNotExists1'"
]
}
```
#### Soap
```xml
8_008 lacks permission to merchant 'TestMerchantNotExists1'
9914368689030052
```