Explore the full catalogue of Apple Mobile Device Management (MDM) and Declarative Device Management (DDM) policies for macOS and iOS. Use the interactive explorer to search, filter, and reference policy keys for use with Microsoft Intune, Jamf, or any standards-compliant MDM solution.
The payload that configures scripts to run at login and logout.
| Setting | Type | Required | Default | Manual Install | Supported OS |
|---|---|---|---|---|---|
loginscripts loginscripts An array of one or more dictionaries of scripts to run at user login time. 1 subkey | array | optional | — | ✓Yes | macOS (10.7+) |
└─ ScriptsItems ScriptsItems A dictionary of login scripts. 2 subkeys | dictionary | — | ✓Yes | macOS (10.7+) | |
└─ └─ filename filename The filename for display purposes. | string | required | — | ✓Yes | macOS (10.7+) |
└─ └─ filedata filedata The UTF-8 encoded data object representing the executable script. | data | required | — | ✓Yes | macOS (10.7+) |
logoutscripts logoutscripts An array of one or more dictionaries of scripts to run at user logout time. 1 subkey | array | optional | — | ✓Yes | macOS (10.7+) |
└─ ScriptsItems ScriptsItems A dictionary of login scripts. 2 subkeys | dictionary | — | ✓Yes | macOS (10.7+) | |
└─ └─ filename filename The filename for display purposes. | string | required | — | ✓Yes | macOS (10.7+) |
└─ └─ filedata filedata The UTF-8 encoded data object representing the executable script. | data | required | — | ✓Yes | macOS (10.7+) |
skipLoginHook skipLoginHook If `true`, the system doesn't execute the login scripts during login. | boolean | optional | false | ✓Yes | macOS (10.7+) |
skipLogoutHook skipLogoutHook If `true`, the system doesn't execute the logout scripts during logout. | boolean | optional | false | ✓Yes | macOS (10.7+) |