Repository navigation
How to retrieve only local users and avoid querying LDAP users with get /users API in keycloak 22+ versions #28313
Unanswered
ashishkolte
asked this question in
Q&A
Replies: 1 comment 3 replies
|
May be disabling LDAP integration and try fetching local users and then re-enable it if required. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
We are currently trying to migrate from Keycloak 21 to 23 version. When we configure LDAP on Keycloak, in the 21 and below versions
when we call the get all users API- /{realm}/users it retrieved only the local users which is what we required in our case. However, in the 22 and above versions we observed that it is also retrieving LDAP users and giving 400 error as there are a few users in LDAP that do not have username:
Caused by: org.keycloak.models.ModelException: User returned from LDAP has null username! Check configuration of your LDAP mappings
Is there a way we can avoid querying on LDAP and only return local users in the latest versions?
All reactions