Replies: 3 comments
-
I am using Version v6.3.2
It still doesn't delete the users deleted or disabled on the AD automatically after a sync. Still looking for answers. |
Beta Was this translation helpful? Give feedback.
-
Hi I am still looking for a solution to automatically disable users in Snipe-IT when their corresponding Active Directory (AD) accounts are disabled or deleted. |
Beta Was this translation helpful? Give feedback.
-
I do all my user management via a powershell script using the Snipe-IT API - It's not to bad to use, but you will need to stick within the API limits if you're managing a large number of users. For auto deletion, I'm first checking whether the user has any assets assigned, (and then creating a helpdesk ticket for that company's team to handle) and only deleting users without assets - That avoids having to find assets later. To grab a list of users from the api;
Once you've figured out which of those should be deleted, you can run the following;
The $SnipeITURL will be your instance URL, and the $headers will contain the auth key you've generated for API access. That's all found in the API documentation. Good luck! |
Beta Was this translation helpful? Give feedback.
-
Hi Community,
Currently the LDAP Sync works perfectly. It's synchronized all the users but when a user is disabled in AD, I would want the user to be deleted in Snipe-IT as well. If anyone has done similar changes and able to make it work, can you please advise me.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions