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

Update Asset Location according to LDAP OU

Open H4usi opened this issue 5 years ago • 8 comments

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.

H4usi avatar Sep 21 '21 08:09 H4usi

👋 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.

welcome[bot] avatar Sep 21 '21 08:09 welcome[bot]

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.

Oddalmighty avatar Sep 21 '21 14:09 Oddalmighty

I have the same problem.

ruddens avatar Oct 19 '21 09:10 ruddens

+1 Would love to see this

The13thTimelord avatar Oct 31 '21 18:10 The13thTimelord

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 :/

uberbrady avatar Oct 31 '21 19:10 uberbrady

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.

Oddalmighty avatar Nov 02 '21 16:11 Oddalmighty

If you go into 'edit location' - you should have a field where you can put in an OU. Does that work?

uberbrady avatar Nov 02 '21 23:11 uberbrady

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.

H4usi avatar Nov 03 '21 10:11 H4usi