Posted on 07-18-2024 12:01 AM
Hi Team,
Does anyone know how to enforce the screensaver after 15 minutes of inactivity and require a password to unlock in Sonama?
I've been trying through a script but it doesn't seem to work, and end-users are still able to change the settings through System Settings., even after the screen lock Password is required need to unlock the screen
Solved! Go to Solution.
Posted on 07-18-2024 02:10 AM
Maybe try a configuration profile with "Application & Custom Settings" and upload a plist like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>askForPassword</key>
<integer>1</integer>
<key>askForPasswordDelay</key>
<integer>0</integer>
<key>idleTime</key>
<integer>900</integer>
</dict>
</plist>
Posted on 07-18-2024 01:49 AM
To start the screen saver after 15 minutes you can use the Configuration Profile Payload "Login Window" and there at "Options" you can "Start screen saver after".
To require the password after a specific time you can use the Configuration Profile Payload "Security and Privacy" > General and "Require Passcode to Unlock Screen".
So if you combine those two payloads it should do the trick.
Posted on 07-18-2024 01:57 AM
Yes, @RaGL @, I have tried that way as well, but it's still not working. Are there any other options that need to be enabled and also specific machine I tested done, not working
Posted on 07-18-2024 02:10 AM
Maybe try a configuration profile with "Application & Custom Settings" and upload a plist like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>askForPassword</key>
<integer>1</integer>
<key>askForPasswordDelay</key>
<integer>0</integer>
<key>idleTime</key>
<integer>900</integer>
</dict>
</plist>
Posted on 07-18-2024 03:30 AM
Thanks @RaGL it will work
Posted on 07-18-2024 01:53 AM
Do you have a method for locking the screen and enabling screen sleep mode every 20 minutes in JAMF?
I have tried different scripts, but the screen only goes to sleep and does not lock.
#!/bin/bash
sudo defaults write /Library/Preferences/com.apple.screensaver.plist idleTime 900