add user using curl apiadd user using curl apihttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1173799322024-03-29T05:04:00Z2024-03-29T05:04:00ZRE: add user using curl apiPéter Petrekanicshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1189672752020-04-17T09:57:43Z2020-04-17T09:57:43ZDear Antonio,<br /><br />Just now I ran into this problem, and I managed to solve it by removing the single quotes from the emailAddress variable, like this:<br />emailAddress=<a href="mailto:acvalle@gmail.com">acvalle@gmail.com<br />(instead of: </a>emailAddress='<a href="mailto:acvalle@gmail.com">acvalle@gmail.com</a>'<a href="mailto:acvalle@gmail.com">)<br /></a>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.<br /><br />Best Regards,<br />PeterPéter Petrekanics2020-04-17T09:57:43Zadd user using curl apiAntonio Caballerohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1173799312019-10-05T11:51:40Z2019-10-05T11:51:40ZHello, 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:<br />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='12345' -d password2='12345' -d autoScreenName=true -d screenName= -d emailAddress='acvalle@gmail.com' -d facebookId=0 -d openId='' -d locale= -d firstName='Antonio' -d middleName='Manuel' -d lastName='Caballero' -d prefixId=0 -d suffixId=0 -d male=true -d birthdayMonth=1 -d birthdayDay=1 -d birthdayYear=1970 -d jobTitle='currante' -d groupIds= -d organizationIds= -d roleIds= -d userGroupIds= -d addresses= -d emailAddresses= -d phones= -d websites= -d announcementsDelivers= -d sendEmail=false<br /><br />And liferay says:ERROR [http-nio-8080-exec-6][JSONWebServiceServiceAction:114] Email name address must validate with com.liferay.portal.kernel.security.auth.DefaultEmailAd