Users not visible in AEM Users console and can’t be recreated due to ‘already exists’ error
User accounts aren’t visible in the AEM Users console but return an already exists error when recreated because the user nodes exist in the repository but aren’t indexed or visible in the console. To fix the issue, locate and remove the stale user nodes, recreate or restore the affected accounts, and verify that they’re visible in the Users console.
Description description
Environment
Adobe Experience Manager (AEM) Managed Services or similar AEM environments.
Issue/Symptoms
- User accounts are missing from the Users console search results.
- Attempting to create the same user results in an ‘already exists’ error.
- User nodes are present in the repository under
/home/usersbut are not visible in the console.
Cause
This issue is caused by an inconsistency between the user repository and the user index/search in the affected environment. As a result, user nodes exist in the repository but are not indexed or visible in the Users console.
Resolution resolution
To fix the user account issue, follow these steps:
-
Log in to the affected AEM environment and open CRXDE Lite (
/crx/de). Go to Tools>Query and set Type toSQL2. For each affected user, run the following query (replace with the actual username or email):SELECT * FROM [ rep:User] AS u WHERE ISDESCENDANTNODE(u, '/home/users') AND [ rep:authorizableId] = '<username or email>'- Note the full path(s) returned for each user.
-
Clean up stale user nodes:
- In CRXDE, navigate to each returned user node path (for example,
/home/users/g/<user-node>). - Right-click the user node and select Delete.
- Click Save All to persist changes.
- In CRXDE, navigate to each returned user node path (for example,
-
Recreate or restore the user account:
- Recreate the user in AEM via Tools
>Security>Users>Create User using the same username or email, or have the user log in again if using Adobe Identity Management Service (IMS).
- Recreate the user in AEM via Tools
-
Verify the resolution:
- Go to Tools
>Security>Users. - Search for the username or email and confirm the user now appears and can be managed.
- Go to Tools