{"title":"Add a web user","category":"default","creationDate":1776961629,"content":"<p>Use the <code>\/addWebUser<\/code> 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.<\/p>\n<h2 id=\"addwebuser-request-fields\">Request parameters<\/h2>\n<p>To create a new web user, make a POST <code>\/addWebUser<\/code> specifying:<\/p>\n<table>\n<col style=\"width: 10%\"><col style=\"width: 15%\"><col style=\"width: 10%\"><col style=\"width: 15%\"><col style=\"width: 50%\">\n  <tbody>\n      <tr>\n        <th colspan=\"2\">Name<\/th>\n        <th>Type<\/th>\n        <th><center>Required<\/center><\/th>\n        <th>Description<\/th>\n      <\/tr>\n  <tr>\n    <td colspan=\"2\"><code>email<\/code><\/td>\n    <td>\n<p>String<\/p>\n<\/td>\n    <td>\n<center><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/center>\n<\/td>\n    <td>\n<p>The email address associated with the user account.<\/p>\n<\/td>\n  <\/tr>\n  <tr>\n    <td colspan=\"2\"><code>merchantCodes<\/code><\/td>\n    <td>\n<p>Array<\/p>\n<\/td>\n    <td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td>\n    <td>\n<p>An array of merchant code strings.<br>A merchant code string holds a value to identify a merchant.<\/p>\n<p>Format:<\/p>\n<ul>\n<li>Either: <code>MerchantAccount.Merchant_Code<\/code><\/li>\n<li>Or: <code>Merchant_Code<\/code><\/li>\n<\/ul>\n<\/td>\n  <\/tr>\n  <tr>\n    <td colspan=\"2\"><code>accountGroupCodes<\/code><\/td>\n    <td>\n<p>Array<\/p>\n<\/td>\n    <td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td>\n    <td>\n<p>An array of <a href=\"\/pt\/account\/account-structure#account-groups\">account group names<\/a>.<br \/>\nFor example: <code>[\"groupEU\", \"groupUS\"]<\/code>.<\/p>\n<\/td>\n  <\/tr>\n    <tr>\n      <td colspan=\"2\"><code>timeZoneCode<\/code><\/td>\n      <td>\n<p>String<\/p>\n<\/td>\n      <td>\n<center><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/center>\n<\/td>\n      <td>\n<p>The time zone associated to the user account profile.<\/p>\n<p>If you do not specify any value, the active user's time zone settings are used instead.<\/p>\n<\/td>\n    <\/tr>\n    <tr>\n      <td colspan=\"2\"><code>userName<\/code><\/td>\n      <td>\n<p>String<\/p>\n<\/td>\n      <td>\n<center><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/center>\n<\/td>\n      <td>\n<p>A user name string holds the user account display name.<br \/>\nIt can include:<\/p>\n<ul>\n<li>Digits: <em>0-9<\/em><\/li>\n<li>Letters <em>a-z<\/em>, <em>A-Z<\/em><\/li>\n<li>Special characters: \"<em>.<\/em>\" (dot), \"<em>-<\/em>\" (hyphen), \"<em>_<\/em>\" (underscore)<em><br \/>\n<\/em><\/li>\n<\/ul>\n<\/td>\n    <\/tr>\n  <tr>\n    <td colspan=\"2\"><code>name<\/code><\/td>\n    <td>\n<p>Object<\/p>\n<\/td>\n    <td>\n<center><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/center>\n<\/td>\n    <td>\n<p>A container object for personal data. This object contains: <ul><li markdown=\"1\"><code>firstName<\/code><\/li><li markdown=\"1\"><code>lastName<\/code><\/li><\/ul><\/p>\n<\/td>\n  <\/tr>\n  <tr>\n    <td colspan=\"1\"> <\/td>\n    <td colspan=\"1\">|-<code>firstName<\/code><\/td>\n    <td>\n<p>String<\/p>\n<\/td>\n    <td>\n<center><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/center>\n<\/td>\n    <td>\n<p>The first name\/given name of the user.<\/p>\n<ul>\n<li>Max. length: 80 characters<\/li>\n<\/ul>\n<\/td>\n  <\/tr>\n  <tr>\n    <td colspan=\"1\">\u00a0<\/td>\n    <td colspan=\"1\">|-<code>lastName<\/code><\/td>\n    <td>\n<p>String<\/p>\n<\/td>\n    <td>\n<center><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/center>\n<\/td>\n    <td>\n<p>The last name\/family name of the user.<\/p>\n<ul>\n<li>Max. length: 80 characters<\/li>\n<\/ul>\n<\/td>\n  <\/tr>\n  <tr>\n    <td colspan=\"2\"><code>roles<\/code><\/td>\n    <td>\n<p>Array<\/p>\n<\/td>\n    <td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td>\n    <td>\n<p>A container object for\u00a0types of role for the account user.<\/p>\n<ul>\n<li><code>RoleType<\/code><\/li>\n<\/ul>\n<\/td>\n  <\/tr>\n  <tr>\n    <td colspan=\"1\"> <\/td>\n    <td colspan=\"1\"><code>RoleType<\/code><\/td>\n    <td>\n<p>Enum<\/p>\n<\/td>\n    <td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td>\n    <td>\n<p>It defines the type of role assigned to the user account.<br \/>\nSome examples of roles are:<\/p>\n<ul>\n<li><code>Merchant_standard_role<\/code><\/li>\n<li><code>Merchant_manage_payments<\/code><\/li>\n<li><code>Merchant_Report_role<\/code><\/li>\n<li><code>Merchant_dispute_management<\/code><\/li>\n<li><code>Merchant_technical_integrator<\/code><\/li>\n<li><code>Merchant_View_Risk_Results_role<\/code><\/li>\n<li><code>Merchant_view_risk_settings<\/code><\/li>\n<li><code>Merchant_change_risk_settings<\/code>\u00a0<\/li>\n<li><code>Merchant_allowed_own_password_reset<\/code><\/li>\n<\/ul>\n<\/td>\n  <\/tr>\n <\/tbody>\n<\/table>\n<h2 id=\"addwebuser-response-fields\">Response parameters<\/h2>\n<p>If there are no errors in the request, the call returns user name and password for the newly created user account, and a <code>pspReference<\/code>.<\/p>\n<p>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.<\/p>\n<table><thead><tr class=\"header\"><th>Name<\/th><th>Type<\/th><th>Returned by default<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\n<p><code>userName<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td><td>\n<p>The user name assigned to the newly created account.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>password<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td><td>The password assigned to the newly created account.<br>\nThis is a temporary, one-time password.<br>\nUsers need to define a new one upon their first successful login.<\/td><\/tr><tr><td>\n<p><code>pspReference<\/code><\/p>\n<\/td><td>\n<p>String<\/p>\n<\/td><td>\n<center><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/center>\n<\/td><td>\n<p>A reference to uniquely identify the request.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>warnings<\/code><\/p>\n<\/td><td>\n<p>Array<\/p>\n<\/td><td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td><td>\n<p>List containing one or more warning messages.<br \/>\nReturned when the request is not correctly processed.<\/p>\n<\/td><\/tr><tr><td>\n<p><code>errors<\/code><\/p>\n<\/td><td>\n<p>Array<\/p>\n<\/td><td>\n<center><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/center>\n<\/td><td>\n<p>List containing one or more error messages.<br \/>\nReturned when the request fails.<\/p>\n<\/td><\/tr><\/tbody><\/table>\n<h2>Examples<\/h2>\n<h3 id=\"request\">Request<\/h3>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"''\" :id=\"'2001170383'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"JSON\",\"content\":\"{\\n   \\\"email\\\":\\\"test@test.nl\\\",\\n   \\\"merchantCodes\\\":[\\n      \\\"MerchantAccount.TestMerchant\\\",\\n   ],\\n   \\\"name\\\":{\\n      \\\"firstName\\\":\\\"Jane\\\",\\n      \\\"lastName\\\":\\\"Doe\\\"\\n   },\\n   \\\"timeZoneCode\\\":\\\"UTC\\\",\\n   \\\"userName\\\":\\\"test\\\"\\n}\"},{\"language\":\"xml\",\"tabTitle\":\"Soap\",\"content\":\"&lt;?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?&gt;\\n&lt;soap:Envelope xmlns:soap=\\\"http:\\\/\\\/schemas.xmlsoap.org\\\/soap\\\/envelope\\\/\\\" xmlns:xsd=\\\"http:\\\/\\\/www.w3.org\\\/2001\\\/XMLSchema\\\" xmlns:xsi=\\\"http:\\\/\\\/www.w3.org\\\/2001\\\/XMLSchema-instance\\\"&gt;\\n    &lt;soap:Body&gt;\\n        &lt;addWebUser xmlns=\\\"http:\\\/\\\/caaccount.services.adyen.com\\\"&gt;\\n            &lt;request&gt;\\n                &lt;email&gt;test@test.nl&lt;\\\/email&gt;\\n                &lt;merchantCodes&gt;\\n                    &lt;string&gt;MerchantAccount.TestMerchant&lt;\\\/string&gt;\\n                &lt;\\\/merchantCodes&gt;\\n                &lt;name&gt;\\n                    &lt;firstName xmlns=\\\"http:\\\/\\\/common.services.adyen.com\\\"&gt;Jane&lt;\\\/firstName&gt;\\n                    &lt;lastName xmlns=\\\"http:\\\/\\\/common.services.adyen.com\\\"&gt;Doe&lt;\\\/lastName&gt;\\n                &lt;\\\/name&gt;\\n                &lt;timeZoneCode&gt;UTC&lt;\\\/timeZoneCode&gt;\\n                &lt;userName&gt;test&lt;\\\/userName&gt;\\n            &lt;\\\/request&gt;\\n        &lt;\\\/addWebUser&gt;\\n    &lt;\\\/soap:Body&gt;\\n&lt;\\\/soap:Envelope&gt;\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3 id=\"response\">Response<\/h3>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"''\" :id=\"'1245825773'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"JSON\",\"content\":\"{\\n   \\\"pspReference\\\":\\\"9914526950450289\\\",\\n   \\\"password\\\": \\\"*******\\\",\\n   \\\"userName\\\": \\\"testuser\\\"\\n}\"},{\"language\":\"xml\",\"tabTitle\":\"Soap\",\"content\":\"&lt;?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?&gt;\\n&lt;soap:Envelope xmlns:soap=\\\"http:\\\/\\\/schemas.xmlsoap.org\\\/soap\\\/envelope\\\/\\\" xmlns:xsd=\\\"http:\\\/\\\/www.w3.org\\\/2001\\\/XMLSchema\\\" xmlns:xsi=\\\"http:\\\/\\\/www.w3.org\\\/2001\\\/XMLSchema-instance\\\" xmlns:ns0=\\\"http:\\\/\\\/caaccount.services.adyen.com\\\"&gt;\\n    &lt;soap:Body&gt;\\n        &lt;ns0:addWebUserResponse&gt;\\n            &lt;ns0:response&gt;\\n                &lt;ns0:pspReference&gt;9914526950450289&lt;\\\/ns0:pspReference&gt;\\n                &lt;ns0:password&gt;*******&lt;\\\/ns0:password&gt;\\n                &lt;ns0:userName&gt;testuser&lt;\\\/ns0:userName&gt;\\n            &lt;\\\/ns0:response&gt;\\n        &lt;\\\/ns0:addWebUserResponse&gt;\\n    &lt;\\\/soap:Body&gt;\\n&lt;\\\/soap:Envelope&gt;\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3 id=\"response-in-case-of-an-error\">Response in case of an error<\/h3>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"''\" :id=\"'309476445'\" :code-data=\"[{&quot;language&quot;:&quot;json&quot;,&quot;tabTitle&quot;:&quot;JSON&quot;,&quot;content&quot;:&quot;{  \\n  \\&quot;pspReference\\&quot;:\\&quot;9914368689030052\\&quot;,\\n  \\&quot;errors\\&quot;:[  \\n    \\&quot;8_008 lacks permission to merchant 'TestMerchantNotExists1'\\&quot;\\n  ]\\n}&quot;},{&quot;language&quot;:&quot;xml&quot;,&quot;tabTitle&quot;:&quot;Soap&quot;,&quot;content&quot;:&quot;&lt;?xml version=\\&quot;1.0\\&quot; encoding=\\&quot;UTF-8\\&quot;?&gt;\\n&lt;soap:Envelope xmlns:soap=\\&quot;http:\\\/\\\/schemas.xmlsoap.org\\\/soap\\\/envelope\\\/\\&quot; xmlns:xsd=\\&quot;http:\\\/\\\/www.w3.org\\\/2001\\\/XMLSchema\\&quot; xmlns:xsi=\\&quot;http:\\\/\\\/www.w3.org\\\/2001\\\/XMLSchema-instance\\&quot; xmlns:ns0=\\&quot;http:\\\/\\\/caaccount.services.adyen.com\\&quot;&gt;\\n    &lt;soap:Body&gt;\\n        &lt;ns0:addWebUserResponse&gt;\\n            &lt;ns0:response&gt;\\n                &lt;ns0:errors&gt;\\n                    &lt;ns0:string&gt;8_008 lacks permission to merchant 'TestMerchantNotExists1'&lt;\\\/ns0:string&gt;\\n                &lt;\\\/ns0:errors&gt;\\n                &lt;ns0:pspReference&gt;9914368689030052&lt;\\\/ns0:pspReference&gt;\\n            &lt;\\\/ns0:response&gt;\\n        &lt;\\\/ns0:addWebUserResponse&gt;\\n    &lt;\\\/soap:Body&gt;\\n&lt;\\\/soap:Envelope&gt;&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>","url":"https:\/\/docs.adyen.com\/pt\/account-management-api\/manage-user-accounts\/addwebuser","articleFields":{"description":"Create a new web user for one or more merchant accounts.","id":"25134999","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"11-12-2019 14:33"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/account-management-api\/manage-user-accounts\/addwebuser","title":"Add a web user","content":"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.\nRequest parameters\nTo create a new web user, make a POST \/addWebUser specifying:\n\n\n  \n      \n        Name\n        Type\n        Required\n        Description\n      \n  \n    email\n    \nString\n\n    \n\n\n    \nThe email address associated with the user account.\n\n  \n  \n    merchantCodes\n    \nArray\n\n    \n\n\n    \nAn array of merchant code strings.A merchant code string holds a value to identify a merchant.\nFormat:\n\nEither: MerchantAccount.Merchant_Code\nOr: Merchant_Code\n\n\n  \n  \n    accountGroupCodes\n    \nArray\n\n    \n\n\n    \nAn array of account group names.\nFor example: [\"groupEU\", \"groupUS\"].\n\n  \n    \n      timeZoneCode\n      \nString\n\n      \n\n\n      \nThe time zone associated to the user account profile.\nIf you do not specify any value, the active user's time zone settings are used instead.\n\n    \n    \n      userName\n      \nString\n\n      \n\n\n      \nA user name string holds the user account display name.\nIt can include:\n\nDigits: 0-9\nLetters a-z, A-Z\nSpecial characters: \".\" (dot), \"-\" (hyphen), \"_\" (underscore)\n\n\n\n    \n  \n    name\n    \nObject\n\n    \n\n\n    \nA container object for personal data. This object contains: firstNamelastName\n\n  \n  \n     \n    |-firstName\n    \nString\n\n    \n\n\n    \nThe first name\/given name of the user.\n\nMax. length: 80 characters\n\n\n  \n  \n    \u00a0\n    |-lastName\n    \nString\n\n    \n\n\n    \nThe last name\/family name of the user.\n\nMax. length: 80 characters\n\n\n  \n  \n    roles\n    \nArray\n\n    \n\n\n    \nA container object for\u00a0types of role for the account user.\n\nRoleType\n\n\n  \n  \n     \n    RoleType\n    \nEnum\n\n    \n\n\n    \nIt defines the type of role assigned to the user account.\nSome examples of roles are:\n\nMerchant_standard_role\nMerchant_manage_payments\nMerchant_Report_role\nMerchant_dispute_management\nMerchant_technical_integrator\nMerchant_View_Risk_Results_role\nMerchant_view_risk_settings\nMerchant_change_risk_settings\u00a0\nMerchant_allowed_own_password_reset\n\n\n  \n \n\nResponse parameters\nIf there are no errors in the request, the call returns user name and password for the newly created user account, and a pspReference.\nIf 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.\nNameTypeReturned by defaultDescription\nuserName\n\nString\n\n\n\nThe user name assigned to the newly created account.\n\npassword\n\nString\n\n\nThe password assigned to the newly created account.\nThis is a temporary, one-time password.\nUsers need to define a new one upon their first successful login.\npspReference\n\nString\n\n\n\nA reference to uniquely identify the request.\n\nwarnings\n\nArray\n\n\n\nList containing one or more warning messages.\nReturned when the request is not correctly processed.\n\nerrors\n\nArray\n\n\n\nList containing one or more error messages.\nReturned when the request fails.\n\nExamples\nRequest\n\n    \n\nResponse\n\n    \n\nResponse in case of an error\n\n    \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Account management API","lvl2":"Manage user accounts","lvl3":"Add a web user"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/account-management-api","lvl2":"https:\/\/docs.adyen.com\/pt\/account-management-api\/manage-user-accounts","lvl3":"\/pt\/account-management-api\/manage-user-accounts\/addwebuser"},"levels":4,"category":"","category_color":"","tags":[]},"articleFiles":{"309476445.json":"<p alt=\"\">309476445.json<\/p>","1245825773.json":"<p alt=\"\">1245825773.json<\/p>","2001170383.json":"<p alt=\"\">2001170383.json<\/p>"}}
