HexCon is coming to NYC. Catch the early-bird price before the time's up! Book me a spot

Restrict iCloud and Apple Id on macSolved

Participant
Discussion
2 years ago

We want to block our students from signing into iCloud/Apple accounts on iMacs in our library. Any tips on how to go about this??

Replies (7)

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

You can block users from accessing the Apple ID preference pane using this script: https://www.hexnode.com/mobile-device-management/help/script-to-hide-disable-different-system-preferences-panes-on-mac/

Just specify the identifier com.apple.preferences.AppleIDPrefPane.

You could do the same for iCloud too: com.apple.preferences.icloud

Hope that helps @Kipp.

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

Thanks a ton @Damion, I was able to successfully disable the Apple ID preference pane, but couldn’t disable iCloud, is this a known issue, or did I do something wrong.

AppleIDdisable

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

Seems like com.apple.preferences.icloud and com.apple.preferences.AppleIDPrefPane have been deprecated since macOS 10.7: https://developer.apple.com/documentation/devicemanagement/systempreferences?language=objc

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

That’s a bummer! Disabling the Apple ID pane still works on some devices, and I don’t know why! Guess I will have to figure out a way to do this manually. Is there a way to check out what iCloud ID and Apple ID are signed in on our devices?

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

I found this script: https://www.hexnode.com/mobile-device-management/help/script-to-fetch-the-apple-ids-of-users-on-mac/

You can confirm if devices are signed into an Apple ID and fetch the Apple ID.

For iCloud, I found this script to check if iCloud is enabled on a device, returns True if iCloud is enabled:

 

Hope this helps

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

I really appreciate it guyss

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

Thanks to all, you helped me as well.