Screen Lock Sonama

selvkumar_Mac
New Contributor

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

1 ACCEPTED SOLUTION

RaGL
New Contributor III

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>

View solution in original post

5 REPLIES 5

RaGL
New Contributor III

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.

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

RaGL
New Contributor III

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>

Thanks @RaGL it will work 

selvkumar_Mac
New Contributor

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