# Existing users with same username as ldap fails to import

**URL:** <https://forum.keycloak.org/t/existing-users-with-same-username-as-ldap-fails-to-import/31333>\
**Category:** Getting advice\
**Tags:** authentication\
**Created:** [April 15, 2026, 1:02pm UTC](https://forum.keycloak.org/t/existing-users-with-same-username-as-ldap-fails-to-import/31333 "2026-04-15T13:02:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubham](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Shubham](https://forum.keycloak.org/u/Shubham)\
**Post date:** [April 15, 2026, 1:02pm UTC](https://forum.keycloak.org/t/existing-users-with-same-username-as-ldap-fails-to-import/31333/1 "2026-04-15T13:02:23Z")

</div>

I am trying to solve a problem i am stuck at.  
I have incremental users in hr application i am planning to import as soon as the user gets added and allow him to login using created password on temporary basis but this user will get added to ldap i.e AD after 10 days or a month depending on onboarding.But in this case i will be required to manually delete the user and he will get automatically federated. I want to avoid this as soon as the user is added to ldap he must be able to login using ad password.  
Is there any way to achieve this??

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/keycloak/original/1X/eb342909d95cf32cbb7517610022c6a0046a9ffb.png) [@system](https://forum.keycloak.org/u/system)\
**Post date:** [October 12, 2026, 1:03pm UTC](https://forum.keycloak.org/t/existing-users-with-same-username-as-ldap-fails-to-import/31333/2 "2026-10-12T13:03:19Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
