<?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 get the correct user status from Liferay DXP 7.3</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121429997" />
  <subtitle>How to get the correct user status from Liferay DXP 7.3</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121429997</id>
  <updated>2026-04-05T15:17:30Z</updated>
  <dc:date>2026-04-05T15:17:30Z</dc:date>
  <entry>
    <title>RE: How to get the correct user status from Liferay DXP 7.3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121437564" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121437564</id>
    <updated>2022-06-02T15:57:54Z</updated>
    <published>2022-06-02T15:57:53Z</published>
    <summary type="html">&lt;p&gt;Hi Eric, I've never looked at this before but it seems pretty
  straightforward. The MVCActionCommand sets the status to INACTIVE (int
  5) when a user is deactivated, and APPROVED (int 0) when restored. I
  can't think of a reason why there'd be a mismatch, but I don't know
  how you're retrieving the data. Maybe something with the search index?
  A Reindex might be in order?&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/liferay/liferay-portal/blob/master/modules/apps/users-admin/users-admin-web/src/main/java/com/liferay/users/admin/web/internal/portlet/action/EditUserMVCActionCommand.java#L123-L139"&gt;EditUserMVCActionCommand&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2022-06-02T15:57:53Z</dc:date>
  </entry>
  <entry>
    <title>How to get the correct user status from Liferay DXP 7.3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121429996" />
    <author>
      <name>eric gou</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121429996</id>
    <updated>2022-05-27T17:20:33Z</updated>
    <published>2022-05-27T06:50:47Z</published>
    <summary type="html">&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;We are on Liferay DXP 7.3.10. As requested by our customers, we
  provide them with monthly status reports of the users (name, id,
  inactive/active, access rights, last login date/time etc) from their
  respective organizations.&lt;/p&gt;
&lt;p&gt;In DXP 7.3.10 database, there is a column named status in table
  User_. Based on our experiments, it seems to us that when its status
  is set to 5, a user will be inactive, otherwise, when set to 0, the
  user will be active. This seems true for most user records. But we do
  have found some exceptions. While the users' status were 0 in the
  table, their status on Liferay Portal's adminstration / control panel
  / users and organizations UI were shown as inactive and this has
  confused our customers as the generated reports showed them those
  users were active.&lt;/p&gt;
&lt;p&gt;Can someone please help and let me know how Liferay populates the
  user status on its admin UI? Does it solely rely on the value of
  User_.status column? When generating the user status reports, we will
  need to use the same logic to make the status of all users consistent
  with those displayed on the admin UI.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>eric gou</dc:creator>
    <dc:date>2022-05-27T06:50:47Z</dc:date>
  </entry>
</feed>
