You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user changes OU (with OU Location Sync being set up), after doing an LDAP sync, the user will still appear to be in the old OU.
If you go into SnipeIT and click "edit" on their profile, the new locations will be set.
If you cancel and go back to searching the locations, they will still be under the old location.
If you go back to editing their profile, without changing anything and click "save", they will now be in the correct location
Reproduction steps
Set up locations with OU syncing.
Go to Active Directory and change a users OU
Go to SnipeIT and do an LDAP sync
Check the user in question and their location
The location and department (both set from LDAP sync) is still set to the old locations
If I click edit, then save without making any changes, the expected changes are now made.
Expected behavior
After step 4 in the reproduction steps, I'd expect to see them in the new OU without any further steps.
Screenshots
No response
Snipe-IT Version
v6.0.4 build 8050
Operating System
Ubuntu
Web Server
Nginx
PHP Version
7.4.3
Operating System
Ubuntu 2204
Browser
Google Chrome
Version
106
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
yea, we have the same issue. I Posted it a while ago here on Github #10106
The user gets updated, but the assets are staying at the old location. But your solution to edit the user and save it, is WAY smarter than what we did. We checked in and out, every asset to the user.
So i can't help you sadly, but thanks for the help :)
@H4usi , I've noticed you can fix this with a daily cron job (if you are using linux) by running the following command in your project root: php artisan snipeit:sync-asset-locations --output=all
Keep in mind a few things that I found;
Any asset checked in with a location & without a default location will have their location wiped as a result of the command. I suggest doing a backup, testing the command and looking at the affects with your dataset to fully assess this.
Any asset checked in with a location & default location that is different, the default location will take precedence.
Debug mode
Describe the bug
If a user changes OU (with OU Location Sync being set up), after doing an LDAP sync, the user will still appear to be in the old OU.
If you go into SnipeIT and click "edit" on their profile, the new locations will be set.
If you cancel and go back to searching the locations, they will still be under the old location.
If you go back to editing their profile, without changing anything and click "save", they will now be in the correct location
Reproduction steps
Expected behavior
After step 4 in the reproduction steps, I'd expect to see them in the new OU without any further steps.
Screenshots
No response
Snipe-IT Version
v6.0.4 build 8050
Operating System
Ubuntu
Web Server
Nginx
PHP Version
7.4.3
Operating System
Ubuntu 2204
Browser
Google Chrome
Version
106
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: