<?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>Lifery DXP 7.4: getting site role with /o/api services</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121416106" />
  <subtitle>Lifery DXP 7.4: getting site role with /o/api services</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121416106</id>
  <updated>2026-04-25T18:21:37Z</updated>
  <dc:date>2026-04-25T18:21:37Z</dc:date>
  <entry>
    <title>RE: Lifery DXP 7.4: getting site role with /o/api services</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121438991" />
    <author>
      <name>Jose Luis Bango Bustelo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121438991</id>
    <updated>2024-11-08T09:00:19Z</updated>
    <published>2022-06-05T11:17:44Z</published>
    <summary type="html">&lt;p&gt;Hello Alessandro,&lt;/p&gt;
&lt;p&gt;You can try the headless-admin-user API: &lt;strong&gt;http://localhost:8080/o/headless-admin-user/v1.0/openapi.yaml&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To get the user info, try: &lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;curl
    &amp;quot;http://localhost:8080/o/headless-admin-user/v1.0/my-user-account&amp;quot;
    -u &amp;quot;test@liferay.com:test&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;curl
    &amp;quot;http://localhost:8080/o/headless-admin-user/v1.0/user-accounts/{accountId}&amp;quot;
    -u &amp;quot;test@liferay.com:test&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Jose Luis Bango Bustelo</dc:creator>
    <dc:date>2022-06-05T11:17:44Z</dc:date>
  </entry>
  <entry>
    <title>Lifery DXP 7.4: getting site role with /o/api services</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121416105" />
    <author>
      <name>Alessandro Candini</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121416105</id>
    <updated>2022-05-06T08:58:22Z</updated>
    <published>2022-05-06T08:49:02Z</published>
    <summary type="html">&lt;p&gt;Hi everyone, I have an user, belonging to a UserGroup and this
  UserGroup is associated to a site Role.&lt;/p&gt;
&lt;p&gt;Using a sequence of Liferay REST API calls, how can I get which site
  role have my user?&lt;/p&gt;
&lt;p&gt;I would like to get my user data, but inside the JSON returned I do
  not have neither site roles, nor site groups which it belongs to.&lt;/p&gt;
&lt;p&gt;Calling the user group API, I do not have the list of users belonging
  to them, neither roles associated to that group.&lt;/p&gt;
&lt;p&gt;Finally, calling the site this user belongs to, there is no reference
  to site roles.&lt;/p&gt;
&lt;p&gt;How to manage this? What is the supposed correct sequence of calls?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</summary>
    <dc:creator>Alessandro Candini</dc:creator>
    <dc:date>2022-05-06T08:49:02Z</dc:date>
  </entry>
</feed>
