snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Auto Delete Users not in LDAP Source

Open jworth-worthnet opened this issue 9 years ago • 23 comments

Automatically delete users not in LDAP source

Hello,

This is a fantastic bit of software so just want to start off by saying thanks! :)

I was wondering if it's possible to automatically delete people in Snipe-IT as part of the LDAP sync. For example I work in education and we obviously have a huge turnover of students and staff every year and I would like to have the system automatically delete people that no longer appear in the LDAP source. The people would get deleted automatically if they don't have any assets assigned to them. Otherwise, they would get flagged as deleted but with assets still checked out.

I am hoping that this makes sense.

Thanks! :)

jworth-worthnet avatar Jul 14 '17 20:07 jworth-worthnet

That is an interesting idea, personally I would rather it flagged only and not completed automated but we are only working with staff assets. I haven't tested what happens when a account is removed, have you?

rWaddles avatar Jul 18 '17 12:07 rWaddles

If you manually delete a person it it still visible by clicking "Show deleted users". That way audit trails/logs are still valid.

jworth-worthnet avatar Jul 18 '17 13:07 jworth-worthnet

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jan 20 '18 09:01 stale[bot]

Is this still an option? We deal with a lot of users starting and leaving and will need to know which assets have been assigned to users that have recently left. Since our process involves moving the AD accounts to a different group, the user accounts in SnipeIT should be removed if the source user account doesn't exist.

wsidl avatar Apr 29 '19 17:04 wsidl

+1 I would like to see this feature, when people are gone from our LDAP server I would like to be able to prune accounts that are no longer present.

chndler avatar Oct 05 '21 17:10 chndler

+1 It would be helpful if there were an indicator that the user was not in the AD anymore.

stonehellway avatar Oct 14 '21 10:10 stonehellway

+1 It would be helpful if I delete a user from AD, after LDAP sync that account will be disabled - it shouldn't be deleted because of assign assets etc ;)

triple-HA avatar Nov 25 '21 11:11 triple-HA

+1 Delete or flag, anything would be great to facilitate in auto deletion of users that are deleted from LDAP source.

RedhaIdrus avatar Dec 13 '21 08:12 RedhaIdrus

+1 Just looking for this functionality and found this thread. The same with departments would be awesome.

SonGokussj4 avatar Feb 01 '22 13:02 SonGokussj4

+1 Still would really like this feature. The whole point of using a separate account service is to not have to manage users for every application used.

sier avatar Jun 13 '22 10:06 sier

+1

Mike-NP avatar Jun 28 '22 20:06 Mike-NP

Most folks are transitioning to SAML/SCIM, away from LDAP. This is a surprisingly challenging problem to solve via LDAP, since whatever behavior we choose, some subset of users will be expecting the opposite or different behavior.

snipe avatar Jun 28 '22 20:06 snipe

It would be great if you implement automatic deletion of deleted users not found in the Active Directory.

Zoran-Jankov avatar Feb 23 '24 13:02 Zoran-Jankov

Most folks are transitioning to SAML/SCIM, away from LDAP. This is a surprisingly challenging problem to solve via LDAP, since whatever behavior we choose, some subset of users will be expecting the opposite or different behavior.

Yet lot of companies are still relining on LDAP and Active Directory.

Zoran-Jankov avatar Feb 23 '24 13:02 Zoran-Jankov

Hi all, Thanks for the update. Echoing others, automatic user deletion via LDAP sync is crucial for us too. While SAML/SCIM is gaining traction, LDAP remains vital for many. Configurable auto-deletion with safeguards would be amazing! Happy to test/contribute.

dcacija avatar Feb 23 '24 13:02 dcacija

+1 was just making a list of the users that recently left the company - the "auto-delete" would be a good feature (a script or command that can be used manually / via scheduled task would suffice as well)

yetanothersys-admin avatar Mar 04 '24 09:03 yetanothersys-admin

Considering that Snipe-IT has an API : should it be possible to create a cron job that checks LDAP/AD users with the same LDAP filter used in Snipe-IT, compares with users in Snipe-IT and removes/disables/tags or whatever the users that are misssing or disabled in LDAP/AD ? Anyone who has tried this?

conceptualcontinuity avatar Mar 06 '24 09:03 conceptualcontinuity

I am down for a cron job if someone knows how to do it. I was hoping by now this would have been something that could be left off for those who didn't want it or turned on/configured for those who did. However, i do not know anything about how thats all done on the backend or how feasible this request is, but it would be great to not have to always delete users out, but instead have that automated like our other systems that sync with AD.

jeramifrost avatar Mar 18 '24 21:03 jeramifrost

Any update about this?? This is really essential

goni-Seoul avatar Apr 30 '24 03:04 goni-Seoul

+1 if this is ever available

jamoritch avatar Nov 19 '24 13:11 jamoritch