JDSS - JAMF Delete Shared Users

Deletes all shared users for an iPad

Author
Jesse Cole
Daily installs
0
Total installs
23
Ratings
1 0 0
Version
1.0
Created
2019-05-06
Updated
2019-05-06
License
N/A
Applies to

This script modifies installs of JAMF Pro (current version: 10.11.1). It creates a working "Remove All" button for the "Shared Users" pane for shared iPads.

Apple's shared iPads have a limit of 10 cached AppleIDs. When that limit is hit, the iPad will not allow additional users to log in. You then have two options: wipe the device or delete the users from the MDM. JAMF does allow deleting the users one at a time through their interface. Unfortunately, you cannot queue up the delete commands. An error will appear when click the button until the previous command is no longer pending.

This script automates the process. It will repeatedly send the delete user command (every 2 seconds for up to 60 seconds) until it goes through at which point it moves on to the next user.

I'm sure Apple or JAMF or both will eventually release something to address this problem but for now, this works.