Request to API => slow ldapsearch due to wildcard

Hello
I request a user from keycloak API
it takes long time because keycloak searches the user in the LDAP provider with slow filter:
(uid=)

is there a way to avoid this slow ldap search please?

BR
Pascal

sorry: ldap filter is ( uid = * < searched user name > *)

Hello @pascal-tower, when using the keycloak API, there is a parameter to specify if you want to do an exact search or not.
For the admin REST API, it is documented here : Keycloak Admin REST API
Regarding the Keycloak Java API, the exact search is also available, and implemented for the LDAP Storage Provider ( look for searchForUserStream() and provide UserModel.EXACT in the params Map)