Update Asset Location according to LDAP OU
Snipe-IT Version
v5.2.0
Operating System
Ubuntu 20.04.3 LTS
Web Server
nginx
PHP Version
7.4
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
We sync our users with LDAP and locations with the OUs. If a user changes its OU, it would be nice, if the Assets, checked out to the user, would also change its location. At the moment, they stay at there last location, where the user was at the time they where checked out.
Describe the solution you'd like A clear and concise description of what you want to happen.
Two possible ways. First completely automatically with the LDAP Sync. Or, as an Bulk Manual update.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
No response
Additional context Add any other context or screenshots about the feature request here.
if this is already an feature, i would be super glad to hear about it, as i could not find it.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
We have the same setup here. Most assets are assigned directly to staff, so it would be nice for the location to update via LDAP sync rather than updating each user individually within Snipe-IT AND Active Directory. It leaves too much room for error with the amount of staff we have.
I have the same problem.
+1 Would love to see this
So you folks are saying that you set an OU in the location within Snipe-IT, and then the initial sync does pick up that location. But subsequent syncs, if the user changes OU’s, do not pick up the new location? Becaue that’s how it’s supposed to work, and if it doesn’t, then that’s probably a bug :/
I believe the only way to use the location OU in Snipe-IT is with an LDAP search filter. The OP is saying that their users' location is updated via LDAP, but any assigned assets do not update location automatically. They have to manually update each asset to reflect the user's location.
If you go into 'edit location' - you should have a field where you can put in an OU. Does that work?
This is how we use it. Every location we have "LDAP Search OU" is set to its own location. The initial location, when we checkout an asset, is automatically correct set.
But if we move an user to a new location in LDAP (and run a LDAP Sync in Snipe-IT) the old location for this assets is kept. I need to check in and out the asset to get it to the new location.