# Imported User entries get deleted

**URL:** <https://forum.keycloak.org/t/imported-user-entries-get-deleted/25269>\
**Category:** Getting advice\
**Tags:** authentication, ldap, oidc\
**Created:** [March 27, 2024, 2:19pm UTC](https://forum.keycloak.org/t/imported-user-entries-get-deleted/25269 "2024-03-27T14:19:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Branden](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@Branden](https://forum.keycloak.org/u/Branden)\
**Post date:** [March 27, 2024, 2:19pm UTC](https://forum.keycloak.org/t/imported-user-entries-get-deleted/25269/1 "2024-03-27T14:19:16Z")

</div>

Hi All,

I am facing a weird issue and need assistance please.

When I import users using ldap user federation, I can search for and find the imported user in the users tab in the UI. I can also see the user in the USER\_ENTITY table on the DB.

However once I click on the user the user gets deleted I get a Network response was not OK. error on the UI and then I see SQL delete statements in the logs and then I also see this in the logs [org.keycloak.storage.UserStorageManager] (executor-thread-45) Removed invalid user ‘xxxxxx’

I can’t figure out why the user get deleted. When I search for the user again in the users view on the UI the same user gets recreated with a new USER\_ID and then if I try to click on it in the UI the delete statement just happens again

ANY HELP will really be appreciated!

---

<div class="post-metadata">

**Author:** ![Branden](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@Branden](https://forum.keycloak.org/u/Branden)\
**Post date:** [March 27, 2024, 2:38pm UTC](https://forum.keycloak.org/t/imported-user-entries-get-deleted/25269/2 "2024-03-27T14:38:45Z")

</div>

Not sure how to close this, But I got it working.

It looks like it’s a bug [User deletion and recreating in local database when timeout in LDAP · Issue #9520 · keycloak/keycloak · GitHub](https://github.com/keycloak/keycloak/issues/9520)

I changed UUID LDAP attribute from objectGUID to sAMAccountName
