Hey everyone,
I'm currently looking for a smart way to automatically logout logged in macOS users.
Situation:
School using PSSO, users can work on whatever Mac they want. Most students don't log out properly.
No planning on force rebooting the Mac. No planning on login into each Mac using local admin credentials and ending the sessions.
Fast User Switching and AutoLogOutDelay are configured as follows:
sudo defaults write /Library/Preferences/.GlobalPreferences MultipleSessionEnabled --bool YES
sudo defaults write /Library/Preferences/.GlobalPreferences com.apple.autologout.autoLogoutDelay -int 300