8000 Show credentials of disabled users in admin console by andy-clapson · Pull Request #54778 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content 8000

Show credentials of disabled users in admin console - #54778

Merged
edewit merged 1 commit into
keycloak:mainfrom
andy-clapson:fix-disabled-user-credentials
Nov 6, 2026
Merged

edewit merged 1 commit into
keycloak:mainfrom
andy-clapson:fix-disabled-user-credentials

Conversation

@andy-clapson
@andy-clapson andy-clapson commented Nov 6, 2026 •
Copy link
Copy Markdown
Contributor

Closes #54777

#39764 stopped fetching credentials for every disabled user to avoid the crash for orphaned LDAP users (#39715). With this change the fetch is skipped only for disabled users that are federated, so other disabled users' credentials are shown again. Adds a Playwright test.

This is an interim fix: disabled LDAP users that aren't orphaned still show no credentials, because the UI can't tell them apart from orphaned ones. A fuller fix would be for LDAPStorageProvider.getCredentials to return an empty stream instead of throwing when the LDAP entry is missing (as suggested in #39715). The UI check could then be removed. Happy to change this PR to that approach if preferred.

AI disclosure: written with help from Claude Code. I reviewed and understand every change.

Closes keycloak#54777

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Andy <andy@slice.is>
@andy-clapson
andy-clapson requested review from a team as code owners November 6, 2026 16:00
Copilot AI balanced review requested due to automatic review settings November 6, 2026 16:00
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change restoring credential visibility for disabled local users.

No open issues 🎉

What changed in this PR

Restores credential visibility for disabled, non-federated users in the admin console, addressing #54777 while preserving the safeguard for disabled federated users.

Changes:

  • Fetches credentials when a user is enabled or has no federation link.
  • Adds a Playwright regression test confirming that a disabled local user’s password credential is displayed.
File Description
js/​apps/​admin-ui/​test/​users/​main.spec.ts Tests password credential visibility for a disabled local user.
js/​apps/​admin-ui/​src/​user/​UserCredentials.tsx Limits skipped credential requests to disabled federated users.

Review effort: Balanced

@edewit
edewit merged commit 62edf99 into keycloak:main Nov 6, 2026
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin console hides credentials of disabled users

3 participants

0