Community Articles
Find and share helpful community-sourced technical articles
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)

updateddeleteuser.zipISSUE: Ranger ldap integration was working fine. Customer delete user from ranger UI and was facing issue while re-importing user in Ranger.

ROOT CAUSE: Customer removed the users from ranger UI and expected that the user should be automatically imported from ranger usersync process

Below are sample screenshot -

User named 'testuser' is deleted from Ranger UI.



But below you can see the user is still available in database.


RESOLUTION: There are multiple tables which has the entry for the user. You need to run delete script to delete the user entries from database and re-start ranger usersync process to re-import the user.

Please find attach delete script-

Syntax to run the script -

$ -f input.txt -u ranger_user -p password -db ranger [-r <replaceUser>]

Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
2 of 2
Last update:
‎08-17-2019 08:11 AM
Updated by:
Top Kudoed Authors