<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>add user using curl api</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117379932" />
  <subtitle>add user using curl api</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117379932</id>
  <updated>2026-04-07T05:04:15Z</updated>
  <dc:date>2026-04-07T05:04:15Z</dc:date>
  <entry>
    <title>RE: add user using curl api</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118967275" />
    <author>
      <name>Péter Petrekanics</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118967275</id>
    <updated>2020-04-17T09:57:43Z</updated>
    <published>2020-04-17T09:57:43Z</published>
    <summary type="html">Dear Antonio,&lt;br /&gt;&lt;br /&gt;Just now I ran into this problem, and I managed to solve it by removing the single quotes from the emailAddress variable, like this:&lt;br /&gt;emailAddress=&lt;a href="mailto:acvalle@gmail.com"&gt;acvalle@gmail.com&lt;br /&gt;(instead of:   &lt;/a&gt;emailAddress=&amp;#39;&lt;a href="mailto:acvalle@gmail.com"&gt;acvalle@gmail.com&lt;/a&gt;&amp;#39;&lt;a href="mailto:acvalle@gmail.com"&gt;)&lt;br /&gt;&lt;/a&gt;After that, I tested your full curl command on a vanilla Liferay DXP 7.2 FP4 (on 17 Apr 2020), and the user was created successfully.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Peter</summary>
    <dc:creator>Péter Petrekanics</dc:creator>
    <dc:date>2020-04-17T09:57:43Z</dc:date>
  </entry>
  <entry>
    <title>add user using curl api</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117379931" />
    <author>
      <name>Antonio Caballero</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117379931</id>
    <updated>2019-10-05T11:51:40Z</updated>
    <published>2019-10-05T11:51:40Z</published>
    <summary type="html">Hello, i need to create 500 new users in my portal. I am trying api json and i can not create user. Liferay says an error:&lt;br /&gt;I use this curl:curl http://localhost:8080/api/jsonws/user/add-user -u test@liferay.com:12345  -d companyId=20101  -d autoPassword=false  -d password1=&amp;#39;12345&amp;#39;  -d password2=&amp;#39;12345&amp;#39;  -d autoScreenName=true  -d screenName=  -d emailAddress=&amp;#39;acvalle@gmail.com&amp;#39;  -d facebookId=0  -d openId=&amp;#39;&amp;#39;  -d locale=  -d firstName=&amp;#39;Antonio&amp;#39;  -d middleName=&amp;#39;Manuel&amp;#39;  -d lastName=&amp;#39;Caballero&amp;#39;  -d prefixId=0 -d suffixId=0  -d male=true  -d birthdayMonth=1  -d birthdayDay=1  -d birthdayYear=1970  -d jobTitle=&amp;#39;currante&amp;#39;  -d groupIds= -d organizationIds=  -d roleIds= -d userGroupIds=  -d addresses=  -d emailAddresses=  -d phones=  -d websites=  -d announcementsDelivers=  -d sendEmail=false&lt;br /&gt;&lt;br /&gt;And liferay says:ERROR [http-nio-8080-exec-6][JSONWebServiceServiceAction:114] Email name address  must validate with com.liferay.portal.kernel.security.auth.DefaultEmailAddressValidator&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Help me please. Thakns</summary>
    <dc:creator>Antonio Caballero</dc:creator>
    <dc:date>2019-10-05T11:51:40Z</dc:date>
  </entry>
</feed>
