Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Rathan-Naik
Copy link
Contributor

@Rathan-Naik Rathan-Naik commented Jan 18, 2026

When editing a user and validation errors occur:

  • Toast notification now shows actual error messages instead of empty string
  • Inline errors now appear below custom User Profile attributes
  • Errors are properly extracted and displayed for both single and multiple errors

The fix ensures that custom User Profile attributes (with 'attributes.' prefix) are handled correctly even when unmanaged attributes are enabled.

1. Toast notification with error message

Before:

  • Toast showed an empty message ("The user has not been saved: ") when validation errors occurred.
  • Inline validation errors did not appear below custom User Profile attributes when editing a user, even though they worked for standard fields like email.

After the fix:

  • Toast displays the actual error message extracted from the server response, making it clear why the save failed.
  • Inline errors now appear below custom User Profile attributes (e.g., customRequired), providing immediate feedback when required fields are empty or validation fails. This matches the behavior seen when creating a new user.
UserAttributes1

2. Toast notification with multiple error messages

UserAttributes1

3. Attributes Section

Before:

  • Toast showed an empty message ("The user has not been saved: ") when validation errors occurred.
    After the fix:
  • Toast displays the actual error message extracted from the server response, making it clear why the save failed.
UserAttributes1

Closes #44819

When editing a user and validation errors occur:
- Toast notification now shows actual error messages instead of empty string
- Inline errors now appear below custom User Profile attributes
- Errors are properly extracted and displayed for both single and multiple errors

The fix ensures that custom User Profile attributes (with 'attributes.' prefix)
are handled correctly even when unmanaged attributes are enabled.

Closes keycloak#44819

Signed-off-by: Rathan Naik <[email protected]>
@guenzizouthman-glitch
Copy link

ziezoeimeozoeielcl

@sguilhen sguilhen requested a review from ssilvert January 19, 2026 12:46
Copy link
Contributor

@ssilvert ssilvert left a comment

Choose a reason for hiding this comment

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

Code looks fine. Tried it out and it works.

Thanks for the submission!

@ssilvert ssilvert merged commit 11fa632 into keycloak:main Jan 20, 2026
60 checks passed
ahus1 pushed a commit to ahus1/keycloak that referenced this pull request Jan 20, 2026
When editing a user and validation errors occur:
- Toast notification now shows actual error messages instead of empty string
- Inline errors now appear below custom User Profile attributes
- Errors are properly extracted and displayed for both single and multiple errors

The fix ensures that custom User Profile attributes (with 'attributes.' prefix)
are handled correctly even when unmanaged attributes are enabled.

Closes keycloak#44819

Signed-off-by: Rathan Naik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing validation error label on UI when editing a user

3 participants