<?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 Update user name</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121370460" />
  <subtitle>API Update user name</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121370460</id>
  <updated>2026-04-05T03:27:19Z</updated>
  <dc:date>2026-04-05T03:27:19Z</dc:date>
  <entry>
    <title>RE: API Update user name</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121371043" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121371043</id>
    <updated>2022-03-15T18:25:32Z</updated>
    <published>2022-03-02T19:15:12Z</published>
    <summary type="html">&lt;p&gt;I might be misunderstanding, but you should be able to PUT the user
  account to update it:, and you don't need nearly as many parameters&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-html"&gt;curl -H &amp;quot;Content-Type: application/json&amp;quot; \
-X PUT 	&amp;quot;http://localhost:8080/o/headless-admin-user/v1.0/user-accounts/42761&amp;quot; \
-d &amp;quot;{\&amp;quot;alternateName\&amp;quot;: \&amp;quot;baker\&amp;quot;, \&amp;quot;emailAddress\&amp;quot;: \&amp;quot;able@liferay.com\&amp;quot;, \&amp;quot;familyName\&amp;quot;: \&amp;quot;Bar\&amp;quot;, \&amp;quot;givenName\&amp;quot;: \&amp;quot;Baker\&amp;quot;}&amp;quot; \
-u &amp;quot;test@liferay.com:test&amp;quot;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See the &lt;a
    href="https://learn.liferay.com/dxp/latest/en/users-and-permissions/developer-guide/user-account-api-basics.html"&gt;User
    Account API docs&lt;/a&gt;.&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2022-03-02T19:15:12Z</dc:date>
  </entry>
  <entry>
    <title>API Update user name</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121370459" />
    <author>
      <name>Tomáš Plachý</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121370459</id>
    <updated>2022-03-02T17:23:47Z</updated>
    <published>2022-03-01T19:57:39Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;we need to update user in Liferay, based on changes is our system,
  including firstName and lastName. API has method for whole user
  update, but it needs all data including all organizations, all groups,
  etc. otherwise it removes them. We were not able to get all of these
  data from JSON API calls. &lt;/p&gt;
&lt;p&gt;Is there an easy way to call this method and have all data that needs
  to be passed in request? Get user method does not return all that is
  needed.&lt;br /&gt; We are thinking about writing our own endpoint for this
  update, but from java its the same in terms of data that are needed.
  But there it could be easier to get everything we need. Is there some
  other method, to change just what we want, that we missed?&lt;/p&gt;
&lt;p&gt;Thank you for any help&lt;/p&gt;</summary>
    <dc:creator>Tomáš Plachý</dc:creator>
    <dc:date>2022-03-01T19:57:39Z</dc:date>
  </entry>
</feed>
