<?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>Not able to add user using url</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119990404" />
  <subtitle>Not able to add user using url</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119990404</id>
  <updated>2026-06-22T01:58:20Z</updated>
  <dc:date>2026-06-22T01:58:20Z</dc:date>
  <entry>
    <title>RE: Not able to add user using url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119996241" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119996241</id>
    <updated>2020-09-24T06:27:58Z</updated>
    <published>2020-09-24T06:27:58Z</published>
    <summary type="html">You either need  to be logged in (have active session ) or send user credential through basic auth.</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-09-24T06:27:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to add user using url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119995887" />
    <author>
      <name>Bharath HG</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119995887</id>
    <updated>2020-09-24T06:22:14Z</updated>
    <published>2020-09-24T06:22:14Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Thanks, it is working. But even when i pass admin parameters in the url like&lt;br&gt;&lt;a href="http://test:test@10.73.15.7:8080/api/jsonws/user/add-user/"&gt;http://test:test@localhost:8080/api/jsonws/user/add-user/&lt;/a&gt;&lt;br&gt;&lt;br&gt;it gives error as&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;{"exception":"Access denied to com.liferay.portal.kernel.service.UserService#addUser","throwable":"java.lang.SecurityException: Access denied to com.liferay.portal.kernel.service.UserService#addUser","error":{"message":"Access denied to com.liferay.portal.kernel.service.UserService#addUser","type":"java.lang.SecurityException"}}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;can any one please help&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Bharath HG</dc:creator>
    <dc:date>2020-09-24T06:22:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to add user using url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119995524" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119995524</id>
    <updated>2020-09-24T06:07:52Z</updated>
    <published>2020-09-24T06:07:52Z</published>
    <summary type="html">Hi,&lt;br /&gt;We need to add blank values also in url  with null or [] , Please try the below url :&lt;br /&gt;&lt;a href="http://localhost:8080/api/jsonws/user/add-user/company-id/20098/auto-password/false/password1/%3B/password2/%3B/auto-screen-name/true/screen-name/null/email-address/dfsc%40gmail.com/facebook-id/0/open-id/null/locale/en_US/first-name/baa/middle-name/null/last-name/cbb/prefix-id/0/suffix-id/0/male/true/birthday-month/1/birthday-day/1/birthday-year/1970/job-title/null/group-ids/%5B%5D/organization-ids/%5B%5D/role-ids/%5B%5D/user-group-ids/%5B%5D/send-email/true?p_auth=Pguw3Cun"&gt;http://test:test@localhost:8080/api/jsonws/user/add-user/company-id/20097/auto-password/false/password1/%3B/password2/%3B/auto-screen-name/true/screen-name/null/email-address/dfsc%40gmail.com/facebook-id/0/open-id/null/locale/en_US/first-name/baa/middle-name/null/last-name/cbb/prefix-id/0/suffix-id/0/male/true/birthday-month/1/birthday-day/1/birthday-year/1970/job-title/null/group-ids/%5B%5D/organization-ids/%5B%5D/role-ids/%5B%5D/user-group-ids/%5B%5D/send-email/true?p_auth=Pguw3Cun&lt;/a&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-09-24T06:07:52Z</dc:date>
  </entry>
  <entry>
    <title>Not able to add user using url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119990403" />
    <author>
      <name>Bharath HG</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119990403</id>
    <updated>2020-09-23T11:50:15Z</updated>
    <published>2020-09-23T11:50:15Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;hi,I am able to enquire a user using the URL of API by appending p_auth value say&amp;nbsp;&lt;br&gt;&lt;a href="http://10.73.15.7:8080/api/jsonws/user/get-user-by-id/user-id/146468?p_auth=xm5BTj9v"&gt;http://localhost:8080/api/jsonws/user/get-user-by-id/user-id/146468?p_auth=xm5BTj9v&lt;/a&gt;&lt;br&gt;But when i try to add a user using the URL and appending p_auth&lt;br&gt;&lt;br&gt;&lt;a href="http://test:test@10.73.15.7:8080/api/jsonws/user/add-user/company-id/20097/auto-password/false/password1/%3B/password2/%3B/auto-screen-name/true/screen-name/email-address/dfsc%40gmail.com/facebook-id/0/open-id/locale/en_US/first-name/baa/middle-name/last-name/cbb/prefix-id/0/suffix-id/0/male/true/birthday-month/1/birthday-day/1/birthday-year/1970/job-title/group-ids/organization-ids/role-ids/user-group-ids/send-email/true?p_auth=xm5BTj9v"&gt;http://test:test@localhost:8080/api/jsonws/user/add-user/company-id/20097/auto-password/false/password1/%3B/password2/%3B/auto-screen-name/true/screen-name/email-address/dfsc%40gmail.com/facebook-id/0/open-id/locale/en_US/first-name/baa/middle-name/last-name/cbb/prefix-id/0/suffix-id/0/male/true/birthday-month/1/birthday-day/1/birthday-year/1970/job-title/group-ids/organization-ids/role-ids/user-group-ids/send-email/true?p_auth=xm5BTj9v&lt;/a&gt;&lt;br&gt;&lt;br&gt;i get error as&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;{"exception":"No JSON web service action with path /user/add-user and method GET for null","throwable":"com.liferay.portal.kernel.jsonwebservice.NoSuchJSONWebServiceException: No JSON web service action with path /user/add-user and method GET for null","error":{"message":"No JSON web service action with path /user/add-user and method GET for null","type":"com.liferay.portal.kernel.jsonwebservice.NoSuchJSONWebServiceException"}}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Can any one please help?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Bharath HG</dc:creator>
    <dc:date>2020-09-23T11:50:15Z</dc:date>
  </entry>
</feed>
