Posted on 03-29-2022 06:55 AM
Hi, We use Jamf pro to control 20 iMac pcs in use at our library. I try to find a way to force logout of guest users after 30 minutes of inactivity, but with no luck.
It is very important to me because few users logout when they stop to use the computers.
Thanks
All the machines are updated to Monterey
Posted on 03-29-2022 08:04 AM
Hi ddimisa, that's a pretty interesting question! looks like there are several ways to approach this. Note I've never tested this and only found these resources online so take this with a grain of salt.
1.) Manual Method: https://support.apple.com/guide/mac-help/set-your-mac-to-log-out-when-not-in-use-mchlp2443/mac - Looks like you can set a logout time under Settings and Security. There doesn't appear to be a payload option for this in JAMF unfortunately.
2.) AppleScript/Bash: https://apple.stackexchange.com/questions/39085/how-can-i-automatically-launch-an-application-whenev... - You'll have to have the script continually running which can present it's own set of challenges.
3.) Third-Party: Looks like there is software that can track the idle time and execute a particular command
PowerManager:
https://www.dssw.co.uk/powermanager/professional/
SleepWatcher 2.2
https://www.bernhard-baehr.de/
Never tried these processes personally so not sure how they'll shake out but hopefully it will at least steer you in the right direction. Good Luck!
Posted on 03-30-2022 03:37 AM
Thanks, I'll try and report
Posted on 04-03-2022 04:50 PM
You should be able to set an idle logout time within a Jamf Pro Config Profile
Computers > Configuration Profiles > Login Window > Options > Log out users after: ( set time period)
Posted on 04-05-2022 01:07 AM
Hi @mickgrant , seems not to work for guest users