<?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>Disable all /o/api endpoints but one for a User</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121251549" />
  <subtitle>Disable all /o/api endpoints but one for a User</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121251549</id>
  <updated>2026-04-07T05:36:41Z</updated>
  <dc:date>2026-04-07T05:36:41Z</dc:date>
  <entry>
    <title>RE: Disable all /o/api endpoints but one for a User</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121252157" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121252157</id>
    <updated>2021-11-17T18:16:05Z</updated>
    <published>2021-11-16T22:42:01Z</published>
    <summary type="html">&lt;p&gt;Yes, it's possible in the settings (that also can be configured with
  a properties file). It's in the Third Party category and there you can
  fully disable an API or just specific methods.&lt;/p&gt;</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2021-11-16T22:42:01Z</dc:date>
  </entry>
  <entry>
    <title>Disable all /o/api endpoints but one for a User</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121251548" />
    <author>
      <name>Juan Miguel Imaz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121251548</id>
    <updated>2021-11-16T17:29:01Z</updated>
    <published>2021-11-16T14:25:42Z</published>
    <summary type="html">&lt;p&gt;For security reasons, I want to close all types of external access to
  the liferay APIs.&lt;br /&gt; But for an external application (react) I want
  to give it access to certain endpoint.&lt;/p&gt;
&lt;p&gt;My questions are:&lt;br /&gt;
  &lt;strong&gt;Is it possible to disable all but one API access?&lt;/strong&gt; How
  (broadly speaking, I'll find out how to do it)?&lt;/p&gt;
&lt;p&gt;For a certain user:&lt;br /&gt;
  &lt;strong&gt;I need to open external application access to GET&lt;/strong&gt; /o/headless-admin-content/v1.0/sites/xxxxx/structured-contents&lt;/p&gt;
&lt;p&gt;But I want to close other methods (POST etc) to this endpoint and all
  other endpoints&lt;br /&gt;
  &lt;strong&gt;It's possible?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;IMPORTANT: I don't need the solution, I just want to know if
    it's possible&lt;/strong&gt;&lt;/p&gt;</summary>
    <dc:creator>Juan Miguel Imaz</dc:creator>
    <dc:date>2021-11-16T14:25:42Z</dc:date>
  </entry>
</feed>
