Logout guest user for inactivity

ddimisa
New Contributor

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

4 REPLIES 4

DA2022
New Contributor III

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!

 

ddimisa
New Contributor

Thanks, I'll try and report

mickgrant
Contributor III

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)

Hi @mickgrant , seems not to work for guest users