Maybe my coffee isn't working, but for the life of me i cant seem to find where i can create a smart group of users that do not have any devices/content assigned then delete them from the JSS. Since we are a school, i have a large number of users entering and leaving every year, id like to keep the users list as clean as i can.
Thanks for the help!
@Dylan_YYC I do not see a way to setup criteria based on the number of devices a user has, not sure if this functionality is built in or not.
May be a bit of a long process...but you could export a list of users as a CSV file, then sort/delete any users that have devices tied to them. With the remaining users, delete all extra columns except their "username" column.
Then, create a "static user group" and get the ID of the group from the URL to enter in your CSV file. In the second column of the file, next to the usernames, enter the static group ID for each user's row and save the file.
Using the MUT utility on an OSX device, you can then import the CSV file of users into the static group. Then go into your Jamf console, find the static user group and click on it, then click on "View" --> "Action" --> "Delete Users".
I'm sure there is a cleaner way of taking care of this task, i'm interested to see others responses on how they handle deleting stale users in their JSS console.
It's always been a bit of a pain deleting users in bulk. In the past I've used a script that was going around. It would add the users to a static group called "Remove Users" and add it to the Exclusions of every VPP removing the app assignments. The script no longer works, but I kept that group around because it's still in exclusions. Now students must be removed from assignments and classes before they can be deleted. I basically do these steps manually now, I delete the classes which can easily be re-imported, we also have positions based on grade so I can add whole grades to the Remove Users group and then remove them in bulk. It's a bit more difficult for students that have left the district. It would definitely be easier to base criteria off of number of devices assigned.
We simply do the following when we need to delete users who have been removed from devices (user and location). Users > Search all users > Action button > Delete Users > You will get prompted on how many users can be deleted and those that cannot.
What i normally do is click on mobile device at the top and it sorts by who doesn't or does have devices. Then i go in one by one and delete. This is MUCH MUCH easier! Thank you!
Had a bunch of dupes and unused users to remove. Tried this method in several relatively small batches from 10-350 users, and it worked fine. Did the search all method, no prompt as noted above, and I'm currently stuck watching every one of my 5500+ users be deleted. Upon further inspection, it seems that type of search reports "0" for computers/mobile devices for every user for some reason. For science, I picked out a couple users known to have devices, and they were deleted just the same. I was able to export my devices/usernames after only losing a few hundred, but this will make for a rather unhappy Monday for a lot of people. :(
From what support says, they'll probably be filing this as a bug. Though I still need to get on a call with them to go over the details.
Not trying to hijack the thread, but for those of you wanting to see if you're affected... Find a user and verify they have a device assigned to them in JAMF. Do a blank user search. The results will indicate 0 devices for that user. If you deleted users via the Actions button, you won't get prompted, and it will delete the user despite having a device assigned.
Ninja edit: it seems there are other bits that don't reliably get reported in searches either. Position is a field we fill via AD and if you check individually, it appears correctly, but not so much in searches...