<?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>API headless-admin-user not fully enabled?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119860174" />
  <subtitle>API headless-admin-user not fully enabled?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119860174</id>
  <updated>2026-05-10T20:06:04Z</updated>
  <dc:date>2026-05-10T20:06:04Z</dc:date>
  <entry>
    <title>RE: RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120747235" />
    <author>
      <name>Luis Miguel Barcos</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120747235</id>
    <updated>2021-04-28T15:09:30Z</updated>
    <published>2021-04-28T15:09:30Z</published>
    <summary type="html">&lt;p&gt;Glad to help. If there is something more where we can help, let us
  know :)&lt;/p&gt;</summary>
    <dc:creator>Luis Miguel Barcos</dc:creator>
    <dc:date>2021-04-28T15:09:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120747211" />
    <author>
      <name>Kirk Stork</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120747211</id>
    <updated>2021-04-28T14:07:49Z</updated>
    <published>2021-04-28T14:07:49Z</published>
    <summary type="html">&lt;p&gt;Thanks Luis,&lt;/p&gt;
&lt;p&gt;You're right, it turns out no other config was necessary.  Some other
  issues I'm working through, but this one appears to be a non-issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Kirk Stork</dc:creator>
    <dc:date>2021-04-28T14:07:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120747187" />
    <author>
      <name>Kirk Stork</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120747187</id>
    <updated>2021-04-28T13:56:37Z</updated>
    <published>2021-04-28T13:56:37Z</published>
    <summary type="html">&lt;p&gt;Is it really implemented in 7.3?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Using the docker image &lt;/p&gt;
&lt;pre&gt;liferay/dxp:7.3.10-dxp-1&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I try this request&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;POST http://localhost:8080/o/headless-admin-user/v1.0/user-accounts
Authorization: Basic test@liferay.com test
Content-Type: application/json

{
  &amp;quot;emailAddress&amp;quot;: &amp;quot;foo@example.com&amp;quot;,
  &amp;quot;familyName&amp;quot;: &amp;quot;Bar&amp;quot;,
  &amp;quot;givenName&amp;quot;: &amp;quot;Foo&amp;quot;,
  &amp;quot;x-class-name&amp;quot;: &amp;quot;com.liferay.headless.admin.user.dto.v1_0.UserAccount&amp;quot;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And get&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;POST http://localhost:8080/o/headless-admin-user/v1.0/user-accounts

HTTP/1.1 400 
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1
Set-Cookie: JSESSIONID=8F5887DA7E1C910775291489DD6E54E2; Path=/; HttpOnly
Date: Wed, 28 Apr 2021 13:48:46 GMT
Content-Type: application/json
Content-Length: 101
Connection: close

{
  &amp;quot;status&amp;quot;: &amp;quot;BAD_REQUEST&amp;quot;,
  &amp;quot;title&amp;quot;: &amp;quot;Property \&amp;quot;x-class-name\&amp;quot; is not defined in UserAccount&amp;quot;
}

Response code: 400; Time: 155ms; Content length: 101 bytes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Kirk Stork</dc:creator>
    <dc:date>2021-04-28T13:56:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120743757" />
    <author>
      <name>Luis Miguel Barcos</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120743757</id>
    <updated>2021-04-27T13:47:15Z</updated>
    <published>2021-04-27T13:47:15Z</published>
    <summary type="html">&lt;p&gt;Hi Kirk,&lt;br /&gt;What exactly are you trying? The UserAccount
  endpoints?&lt;br /&gt;AFAIK, CORS is only necessary under development if you
  are working with a Liferay Portal in your local machine.&lt;br /&gt;Have you
  tried using Liferay API Explorer? The path is &lt;a
  href="http://localhost:8080/o/api."&gt;http://localhost:8080/o/api.&lt;/a&gt;
  You need to be logged in to the portal to use it, and you can check if
  the endpoints work.&lt;br /&gt;If not, let us know and we will be glad to
  help :)&lt;/p&gt;</summary>
    <dc:creator>Luis Miguel Barcos</dc:creator>
    <dc:date>2021-04-27T13:47:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120744769" />
    <author>
      <name>Kirk Stork</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120744769</id>
    <updated>2021-04-26T22:38:33Z</updated>
    <published>2021-04-26T22:38:33Z</published>
    <summary type="html">&lt;p&gt;It seems there are other settings in Liferay that need to be
  configured in order to allow requests to these endpoints (CORS,
  authentication methods, etc).  Can't find any dox though --- anyone
  have some links?&lt;/p&gt;</summary>
    <dc:creator>Kirk Stork</dc:creator>
    <dc:date>2021-04-26T22:38:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119927299" />
    <author>
      <name>Javier De Arcos</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119927299</id>
    <updated>2020-09-10T06:22:30Z</updated>
    <published>2020-09-10T06:22:30Z</published>
    <summary type="html">As Jack Bakker said, there is a new  great tool called Liferay API Explorer to explore REST endpoints and GraphQL You can access to it at o/api url. There you can find all available APIs with their endpoints and try them. You can also do the same for the GraphQL queries and mutations.Another option to check the API definition as documentation is to access the OpenAPI document that is accesible in every Liferay API at /openapi.yaml or /openapi.json. There you can read the API contract with all endpoints and allowed methods. In the case of headless-admin-user you can find it at: /o/headless-admin-user/v1.0/openapi.yaml&lt;br /&gt;For what I have researched I think that at this moment the custom fields are not editable through the API like it happens with jsonws, so your options could be using the Expando API as Olaf suggested or create a custom API that uses the Liferay services to achieve what you want</summary>
    <dc:creator>Javier De Arcos</dc:creator>
    <dc:date>2020-09-10T06:22:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119882351" />
    <author>
      <name>Jack Bakker</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119882351</id>
    <updated>2020-09-02T14:47:48Z</updated>
    <published>2020-09-02T14:47:48Z</published>
    <summary type="html">Using Altair extension in Chrome, looking at Liferay v7.3.4 GA5 /o/graphql, I see a updateUserAccount including for customFields. Haven&amp;#39;t tried it yet though. I believe you also can now look at /o/api where there is an integrated GraphiQL. And if it is there for GraphQL, then it is there for REST also.</summary>
    <dc:creator>Jack Bakker</dc:creator>
    <dc:date>2020-09-02T14:47:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119884160" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119884160</id>
    <updated>2020-09-02T12:02:58Z</updated>
    <published>2020-09-02T12:02:58Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Christian Langmann:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;What alternative is available to update a user, especially with custom fields?&lt;br /&gt;&lt;/blockquote&gt;I&amp;#39;d expect the Expando API to be used for custom fields, not the user. Expando is the API name for Custom Fields and takes the user as parameter, as it stores the extended and custom fields.&lt;br /&gt;(someone correct me if I&amp;#39;m wrong in the context of the headless APIs)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-09-02T12:02:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119879362" />
    <author>
      <name>Christian Langmann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119879362</id>
    <updated>2020-09-02T07:42:03Z</updated>
    <published>2020-09-02T07:42:03Z</published>
    <summary type="html">Hi Javier,&lt;br /&gt;is this documented somewhere? I haven&amp;#39;t found anything...&lt;br /&gt;What alternative is available to update a user, especially with custom fields?&lt;br /&gt;I&amp;#39;ve only found &lt;a href="http://localhost:8080/api/jsonws?contextName=&amp;amp;signature=%2Fuser%2Fupdate-user-43-long-java.lang.String-java.lang.String-java.lang.String-boolean-java.lang.String-java.lang.String-java.lang.String-java.lang.String-long-java.lang.String-boolean-%5BB-java.lang.String-java.lang.String-java.lang.String-java.lang.String-java.lang.String-java.lang.String-java.lang.String-long-long-boolean-int-int-int-java.lang.String-java.lang.String-java.lang.String-java.lang.String-java.lang.String-java.lang.String-%5BJ-%5BJ-%5BJ-java.util.List-%5BJ-java.util.List-java.util.List-java.util.List-java.util.List-java.util.List-com.liferay.portal.kernel.service.ServiceContext"&gt;http://localhost:8080/api/jsonws&lt;/a&gt; for update-user, but without custom-fields.&lt;br /&gt;Best regardsChristian</summary>
    <dc:creator>Christian Langmann</dc:creator>
    <dc:date>2020-09-02T07:42:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119866815" />
    <author>
      <name>Javier De Arcos</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119866815</id>
    <updated>2020-08-28T18:12:28Z</updated>
    <published>2020-08-28T18:12:28Z</published>
    <summary type="html">The headless-admin-user API is read-only in Liferay DXP 7.2.&lt;br /&gt;&lt;br /&gt;Write methods will be available in the next DXP 7.3 release. They are already available in the Liferay Portal CE 7.3 GA3 release</summary>
    <dc:creator>Javier De Arcos</dc:creator>
    <dc:date>2020-08-28T18:12:28Z</dc:date>
  </entry>
  <entry>
    <title>API headless-admin-user not fully enabled?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119860173" />
    <author>
      <name>Christian Langmann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119860173</id>
    <updated>2020-08-28T10:32:25Z</updated>
    <published>2020-08-28T10:32:25Z</published>
    <summary type="html">Hi, I setup a vanilla Liferay instance using latest docker image (liferay/dxp:7.2.10-dxp-7). I tried to use headless-admin-user API to manage users (&lt;a href="https://app.swaggerhub.com/apis/liferayinc/headless-admin-user/v1.0#/UserAccount"&gt;https://app.swaggerhub.com/apis/liferayinc/headless-admin-user/v1.0#/UserAccount&lt;/a&gt;) . Searching and retrieving users works (GET o/headless-admin-user/v1.0/user-accounts), but when trying to alter (PUT or PATCH) or delete an user-account (DELETE) I get an HTTP-Status 405 error (METHOD_NOT_ALLOWED). &lt;br /&gt;Do I have to activate those methods somehow?  Any help is greatly appreciated!</summary>
    <dc:creator>Christian Langmann</dc:creator>
    <dc:date>2020-08-28T10:32:25Z</dc:date>
  </entry>
</feed>
