{"title":"Invite web user","category":"default","creationDate":1776961629,"content":"<p>Use the <code>\/inviteWebUser<\/code> endpoint to create a user and send an email to invite them to register.<\/p>\n<p>After you submit the request, the user will receive an email from Adyen, containing a one-time use link to a page where they create their own password to complete the registration process. The link is valid within 24 hours. If the link has already expired and the user has not yet completed the registration, inform them to contact their Admin and ask to send a new invitation email.<\/p>\n<p>The endpoint requires at least one <code>merchantCode<\/code> and one <code>role<\/code>. After the user completes the registration, their account will be associated with the merchant codes provided in the request.<\/p>\n<h2 id=\"inviteWebUser-request-fields\">Request parameters<\/h2>\n<p>To invite a new web user, make a POST <code>\/inviteWebUser<\/code> request specifying the following parameters:<\/p>\n<table>\n<col style=\"width: 15%\"><col style=\"width: 20%\"><col style=\"width: 10%\"><col style=\"width: 15%\"><col style=\"width: 40%\">\n  <tbody>\n  <\/tbody><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=\"-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>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\"><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=\"-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\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=\"invitewebuser-response\">Response parameters<\/h2>\n<p>The response contains the user name 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. The user is not created and no username is returned in the response.<\/p>\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Type<\/th>\n<th style=\"text-align: center;\">Returned&nbsp;by&nbsp;default<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>userName<\/code><\/td>\n<td>String<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td>The user name assigned to the newly created account.<\/td>\n<\/tr>\n<tr>\n<td><code>pspReference<\/code><\/td>\n<td>String<\/td>\n<td style=\"text-align: center;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td>Unique identifier for the request.<\/td>\n<\/tr>\n<tr>\n<td><code>warnings<\/code><\/td>\n<td>Array<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td>String array containing one or more warning messages. <br> Returned when the request is not correctly processed.<\/td>\n<\/tr>\n<tr>\n<td><code>errors<\/code><\/td>\n<td>Array<\/td>\n<td style=\"text-align: center;\"><img title=\"-x-\" alt=\"-x-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/x.png\" \/><\/td>\n<td>String array containing one or more warning messages. <br> Returned when the request is not correctly processed.<\/td>\n<\/tr>\n<\/tbody>\n<\/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\\\":\\\"Hopper\\\"\\n   },\\n    \\\"roles\\\": [\\n        \\\"Merchant_standard_role\\\",\\n        \\\"Merchant_allowed_own_password_reset\\\"\\n    ],\\n    \\\"timeZoneCode\\\":\\\"UTC\\\",\\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\\\"&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;roles&gt;\\n                  &lt;RoleType&gt;Merchant_standard_role&lt;\\\/RoleType&gt;\\n                  &lt;RoleType&gt;Merchant_allowed_own_password_reset&lt;\\\/RoleType&gt;\\n                &lt;\\\/roles&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;Hopper&lt;\\\/lastName&gt;\\n                &lt;\\\/name&gt;\\n                &lt;timeZoneCode&gt;UTC&lt;\\\/timeZoneCode&gt;\\n                &lt;userName&gt;testUser&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   \\\"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: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 'TestMerchant'\\&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 'TestMerchant'&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\/invite-web-users","articleFields":{"description":"Create a new web user and send a registration email.","id":"25134998","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"13-12-2019 10:04"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/account-management-api\/manage-user-accounts\/invite-web-users","title":"Invite web user","content":"Use the \/inviteWebUser endpoint to create a user and send an email to invite them to register.\nAfter you submit the request, the user will receive an email from Adyen, containing a one-time use link to a page where they create their own password to complete the registration process. The link is valid within 24 hours. If the link has already expired and the user has not yet completed the registration, inform them to contact their Admin and ask to send a new invitation email.\nThe endpoint requires at least one merchantCode and one role. After the user completes the registration, their account will be associated with the merchant codes provided in the request.\nRequest parameters\nTo invite a new web user, make a POST \/inviteWebUser request specifying the following parameters:\n\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\nThe response contains the user name and a pspReference.\nIf any issues occur during the process, the call returns one or more warning or error messages. The user is not created and no username is returned in the response.\n\n\n\nName\nType\nReturned&nbsp;by&nbsp;default\nDescription\n\n\n\n\nuserName\nString\n\nThe user name assigned to the newly created account.\n\n\npspReference\nString\n\nUnique identifier for the request.\n\n\nwarnings\nArray\n\nString array containing one or more warning messages.  Returned when the request is not correctly processed.\n\n\nerrors\nArray\n\nString array containing one or more warning messages.  Returned when the request is not correctly processed.\n\n\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":"Invite 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\/invite-web-users"},"levels":4,"category":"","category_color":"","tags":["Invite"]},"articleFiles":{"309476445.json":"<p alt=\"\">309476445.json<\/p>","1245825773.json":"<p alt=\"\">1245825773.json<\/p>","2001170383.json":"<p alt=\"\">2001170383.json<\/p>"}}
