---
title: Screensaver
framework: devicemanagement
role: symbol
role_heading: Device Management Profile
path: devicemanagement/screensaver
---

# Screensaver

The payload that configures the screen saver.

## Declaration

```data
object Screensaver
```

## Properties

askForPassword: If true, the user is prompted for a password when the screen saver is unlocked or stopped. When you use this prompt, you must also provide askForPasswordDelay. Available: macOS 10.13+ askForPasswordDelay: The number of seconds to delay before the password will be required to unlock or stop the screen saver (the grace period). A value of 2147483647 (hexadecimal equivalent of 0x7FFFFFFF) disables this requirement, and a value of 0 can be used to immediately require the password. To use this option, you must set askForPassword to true. Available: macOS 10.13+ idleTime: The number of seconds of inactivity before the screen saver activates (0 = Never activate). loginWindowModulePath: The full path to the screen-saver module to use. moduleName: The name of the screen saver module.

## Discussion

Discussion Specify com.apple.screensaver as the payload type. Profile availability  |   |   |   |   |   |   |   |  Profile example <?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>PayloadContent</key>     <array>         <dict>             <key>idleTime</key>             <integer>60</integer>             <key>loginWindowIdleTime</key>             <integer>60</integer>             <key>loginWindowModulePath</key>             <string>/System/Library/Screen Savers/Example-Name.saver</string>             <key>moduleName</key>             <string>Example Name</string>             <key>askForPassword</key>             <true/>             <key>askForPasswordDelay</key>             <integer>5</integer>             <key>PayloadIdentifier</key>             <string>com.example.myscreensaverpayload</string>             <key>PayloadType</key>             <string>com.apple.screensaver</string>             <key>PayloadUUID</key>             <string>ba9abec1-ee44-413d-b75f-63748644ca71</string>             <key>PayloadVersion</key>             <integer>1</integer>         </dict>     </array>     <key>PayloadDisplayName</key>     <string>Screen Saver Device</string>     <key>PayloadIdentifier</key>     <string>com.example.myprofile</string>     <key>PayloadType</key>     <string>Configuration</string>     <key>PayloadUUID</key>     <string>4ffe721a-f2e6-4191-a3fe-1d1a463fbbac</string>     <key>PayloadVersion</key>     <integer>1</integer> </dict> </plist>

## See Also

### System configuration

- [Declarations](devicemanagement/declarations.md)
- [EnergySaver](devicemanagement/energysaver.md)
- [FileProvider](devicemanagement/fileprovider.md)
- [Font](devicemanagement/font.md)
- [LockScreenMessage](devicemanagement/lockscreenmessage.md)
- [SystemExtensions](devicemanagement/systemextensions.md)
- [TimeServer](devicemanagement/timeserver.md)
