<?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>modify user roles through a button in the menu</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113095359" />
  <subtitle>modify user roles through a button in the menu</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113095359</id>
  <updated>2026-04-06T08:45:46Z</updated>
  <dc:date>2026-04-06T08:45:46Z</dc:date>
  <entry>
    <title>RE: modify user roles through a button in the menu</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113147324" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113147324</id>
    <updated>2019-04-11T13:45:06Z</updated>
    <published>2019-04-11T13:45:06Z</published>
    <summary type="html">Definitely provide more details as Fernando has asked, but I think the answer in the end will be a case of creating an MVCActionCommand class with the role changing logic you need. In that class you will be able to inject (@Reference) the Liferay services you need and in the action handler use them with whatever logic you require. &lt;br /&gt;&lt;br /&gt;On the UI side, you would use the &amp;lt;liferay-portlet:actionURL/&amp;gt; to create the action url linked to your command. The reason I offer the &amp;lt;liferay-portlet:actionURL/&amp;gt; in place of the &amp;lt;portlet:actionURL/&amp;gt; is becuase the extended (liferay) version gives you a few extra tag attributes that are handy. With it you can specify the portletName (for the portlat that the MVCActionCommand is associated with) and a plid for cases where the portlet you are targeting is not the portlet rendering the button, and where it lives on another page. &lt;br /&gt;​​​​​​​</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-04-11T13:45:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: modify user roles through a button in the menu</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113146032" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113146032</id>
    <updated>2019-04-11T13:26:44Z</updated>
    <published>2019-04-11T13:26:44Z</published>
    <summary type="html">Hi Ivan,&lt;br /&gt;&lt;br /&gt;Can you be more specific? &lt;ul style="list-style: disc outside;"&gt;&lt;li&gt;What version are you using? &lt;/li&gt;&lt;li&gt;Where and how exactly have you created the new entry?&lt;/li&gt;&lt;li&gt;Will the user be able to reset her/his own roles? (does this make sense?) Or someone else&amp;#39;s?&lt;/li&gt;&lt;/ul&gt;Maybe if you explain your use case we&amp;#39;ll be able to help you better.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;Fernando</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2019-04-11T13:26:44Z</dc:date>
  </entry>
  <entry>
    <title>modify user roles through a button in the menu</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113095358" />
    <author>
      <name>Ivan SL</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113095358</id>
    <updated>2019-04-09T15:26:31Z</updated>
    <published>2019-04-09T15:26:31Z</published>
    <summary type="html">Is it possible to delete / reset the roles of a user using a button in the top navigation menu? &lt;br /&gt;&lt;br /&gt;I have created a new entry in the menu control bar but I can not understand how I can assign the code that performs these functions to the button that appears. &lt;br /&gt;&lt;br /&gt;I&amp;#39;m looking at liferay sources to create a fragment, but I do not know if I&amp;#39;m on the right track, since basically I do not know if what I want to do is possible through a single button.&lt;br /&gt;&lt;br /&gt;​​​​​​​Thanks in advance!</summary>
    <dc:creator>Ivan SL</dc:creator>
    <dc:date>2019-04-09T15:26:31Z</dc:date>
  </entry>
</feed>
