<?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>How to give ASSIGN_MEMBERS permission to guest user</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114355280" />
  <subtitle>How to give ASSIGN_MEMBERS permission to guest user</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114355280</id>
  <updated>2026-04-04T09:34:41Z</updated>
  <dc:date>2026-04-04T09:34:41Z</dc:date>
  <entry>
    <title>RE: How to give ASSIGN_MEMBERS permission to guest user</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114381496" />
    <author>
      <name>pradip choudhari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114381496</id>
    <updated>2019-07-22T13:57:01Z</updated>
    <published>2019-07-22T13:57:01Z</published>
    <summary type="html">Thanks Olaf Kock &lt;br /&gt;UserLocalServiceUtil worked for me ..</summary>
    <dc:creator>pradip choudhari</dc:creator>
    <dc:date>2019-07-22T13:57:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to give ASSIGN_MEMBERS permission to guest user</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114359767" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114359767</id>
    <updated>2019-07-19T14:06:50Z</updated>
    <published>2019-07-19T14:06:50Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;pradip choudhari:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;strong&gt;UserServiceUtil.addUserWithWorkflow()&lt;/strong&gt;&lt;br /&gt;&lt;/blockquote&gt;That&amp;#39;s what I was talking about: First of all: You should prefer to use UserService directly (e.g. through OSGi), and no longer through UserServiceUtil starting in Liferay 7.&lt;br /&gt;However, UserService is the remote service, with permission checks. The one that led to your question &amp;#34;how do I grant an unauthenticated user the permission to assign members&amp;#34; (or, in this case, to create user accounts): You don&amp;#39;t.&lt;br /&gt;Instead, you&amp;#39;ll do the permission check yourself (I&amp;#39;m assuming you already do), then go to User&lt;strong&gt;Local&lt;/strong&gt;Service, which doesn&amp;#39;t check permissions.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-19T14:06:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to give ASSIGN_MEMBERS permission to guest user</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114359420" />
    <author>
      <name>pradip choudhari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114359420</id>
    <updated>2019-07-19T13:57:02Z</updated>
    <published>2019-07-19T13:57:02Z</published>
    <summary type="html">Hello Sir for better understanding , I am attaching image .&lt;br /&gt;and i am explaining my schenerio is ,I am having all User details that details I am showing as like below image .so when he click confirm that time using action req. I am submitting his all information and I am calling &lt;strong&gt;UserServiceUtil.addUserWithWorkflow()&lt;/strong&gt; method to creating his account  and  storing records in &lt;strong&gt;User_ &lt;/strong&gt; table</summary>
    <dc:creator>pradip choudhari</dc:creator>
    <dc:date>2019-07-19T13:57:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to give ASSIGN_MEMBERS permission to guest user</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114357012" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114357012</id>
    <updated>2019-07-19T13:31:18Z</updated>
    <published>2019-07-19T13:31:18Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;pradip choudhari:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;...after checking his information when he submit details then only we are creating his account in User_ table &lt;br /&gt;so that time I am getting always exception&lt;br /&gt;&lt;/blockquote&gt;I&amp;#39;m assuming (just to be sure) that you&amp;#39;re creating this account through the proper API, not in the table directly.&lt;br /&gt;An important part of Christoph&amp;#39;s answer was the question for code: It&amp;#39;s so much easier to point out issues when we talk about specific code. But it&amp;#39;s good to have your usecase here as well.&lt;br /&gt;I&amp;#39;m assuming that you&amp;#39;re implementing this all in your custom portlet. Most likely you&amp;#39;re using a remote service (where the class name ends in *Service but not in *LocalService): These are permission checked, thus the anonymous user would need to have permission to use the API in the way that you intend. However, this is a really bad idea, as part of the API is also available remotely - and especially the remote API.&lt;br /&gt;In your custom code, you may do the permission check (against the token) yourself, then invoke the *LocalService. LocalServices in Liferay won&amp;#39;t check permissions, but can only be invoked from within the same virtual machine - as is the case with your custom portlet.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-19T13:31:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to give ASSIGN_MEMBERS permission to guest user</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114356676" />
    <author>
      <name>pradip choudhari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114356676</id>
    <updated>2019-07-19T13:24:00Z</updated>
    <published>2019-07-19T13:24:00Z</published>
    <summary type="html">Hello Christoph Rabel&lt;br /&gt;thanks for quick reply.&lt;br /&gt;I am using Liferay 7&lt;br /&gt;I am saving User record in 1 custom table &lt;br /&gt;for each user I am sending 1 unique Id (tokenId) to his email&lt;br /&gt;so , when he check his email and in that he click url &lt;br /&gt;so he will came to public page of my site ..after we will show him his details like his name,his email,his phone,his role (e.g faculty,Student..)&lt;br /&gt;after checking his information when he submit details then only we are creating his account in User_ table &lt;br /&gt;so that time I am getting always exception</summary>
    <dc:creator>pradip choudhari</dc:creator>
    <dc:date>2019-07-19T13:24:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to give ASSIGN_MEMBERS permission to guest user</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114355660" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114355660</id>
    <updated>2019-07-19T11:15:50Z</updated>
    <published>2019-07-19T11:15:50Z</published>
    <summary type="html">I honestly don&amp;#39;t think what you are trying to accomplish here.&lt;br /&gt;Please paste some code and show us, what fails. Please also tell us, which Liferay version you are using.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-07-19T11:15:50Z</dc:date>
  </entry>
  <entry>
    <title>How to give ASSIGN_MEMBERS permission to guest user</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114355279" />
    <author>
      <name>pradip choudhari</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114355279</id>
    <updated>2019-07-19T07:03:38Z</updated>
    <published>2019-07-19T07:03:38Z</published>
    <summary type="html">I dropped one portlet in public page , where guest user submit his tokenId  after we show him his details and after confirmation , when he submit that details we create his account in Organisation . But his role is guest user so always we are getting  User 20120 must have ASSIGN_MEMBERS permission for com.liferay.portal.kernel.model.Organization 296207 exception , so how can we give&lt;strong&gt; ASSIGN_MEMBERS&lt;/strong&gt; permission to guest user </summary>
    <dc:creator>pradip choudhari</dc:creator>
    <dc:date>2019-07-19T07:03:38Z</dc:date>
  </entry>
</feed>
