<?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 access Object Entries via REST API without authentication</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121550082" />
  <subtitle>How to access Object Entries via REST API without authentication</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121550082</id>
  <updated>2026-04-05T09:30:11Z</updated>
  <dc:date>2026-04-05T09:30:11Z</dc:date>
  <entry>
    <title>RE: How to access Object Entries via REST API without authentication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121565593" />
    <author>
      <name>Samuel Romeiro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121565593</id>
    <updated>2022-11-11T16:35:57Z</updated>
    <published>2022-11-10T21:04:31Z</published>
    <summary type="html">&lt;p&gt;Hey Adrian, &lt;/p&gt;
&lt;blockquote&gt;I tried creating a Service Access Policy but it did not seem
  to change anything.&lt;/blockquote&gt;
&lt;p&gt;
  &lt;strong&gt;A. &lt;/strong&gt;You don't need to create a SAP because it already
  existsimage_1&lt;br /&gt;  &lt;/p&gt;
&lt;blockquote&gt;How can I get the entries from the API without being authenticated?&lt;/blockquote&gt;
&lt;p&gt;
  &lt;strong&gt;A. &lt;/strong&gt;You need to give VIEW permission for Guest role,
  unauthenticated users always have this role.Under the hood when we're
  requesting object entries it will check if the user has permission to
  VIEW that object entry otherwise that entry won't be displayed in the
  response.Request without VIEW permission: image_2 and image_3Request
  with VIEW permission:image_4 and image_5In this case I gave an
  individial permission for Guest users VIEW this object entry (43989)&lt;a
    href="https://liferay.dev/blogs/-/blogs/deep-dive-in-roles-and-permissions"
    rel="noopener noreferrer" target="_blank"&gt;More about Role and Permissions&lt;/a&gt;&lt;br /&gt;
  &lt;br /&gt; Thank you!&lt;/p&gt;</summary>
    <dc:creator>Samuel Romeiro</dc:creator>
    <dc:date>2022-11-10T21:04:31Z</dc:date>
  </entry>
  <entry>
    <title>How to access Object Entries via REST API without authentication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121550081" />
    <author>
      <name>Adrian Häussler</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121550081</id>
    <updated>2022-11-01T18:30:38Z</updated>
    <published>2022-11-01T15:10:36Z</published>
    <summary type="html">&lt;p&gt;Good Morning,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am using DXP 7.4. I created an Object and added some entries.&lt;/p&gt;
&lt;p&gt;Now I want to access the Objects Entries via REST API without being
  logged in.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I can access the endpoint but it only delivers empty fields:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;{
  &amp;quot;actions&amp;quot; : { },
  &amp;quot;facets&amp;quot; : [ ],
  &amp;quot;items&amp;quot; : [ ],
  &amp;quot;lastPage&amp;quot; : 1,
  &amp;quot;page&amp;quot; : 1,
  &amp;quot;pageSize&amp;quot; : 20,
  &amp;quot;totalCount&amp;quot; : 0
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I tried creating a Service Access Policy but it did not seem to
  change anything.&lt;/p&gt;
&lt;p&gt;How can I get the entries from the API without being authenticated?&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Adrian&lt;/p&gt;</summary>
    <dc:creator>Adrian Häussler</dc:creator>
    <dc:date>2022-11-01T15:10:36Z</dc:date>
  </entry>
</feed>
