Some organizations require that all of the company's managed macOS devices have custom wallpaper set as the desktop background. This article contains two procedures for IT Admins to control a user's desktop wallpaper:
- You can create a custom command and use an MDM Custom Configuration Profile and a policy to enforce a specific wallpaper file.
Do not use this procedure in conjunction with the Mac Wallpaper Modification Policy.
- Alternatively, you can create a Mac Wallpaper Modification Policy that allows users to change their wallpaper, and then provide the wallpaper file to them.
Prerequisites:
- The device or device group must be enrolled in Mobile Device Management (MDM) to use this method.
- The wallpaper image file must be hosted in publicly accessible cloud storage accessible via URL, for example an AWS S3 bucket.
Creating a Custom Command for Wallpaper
Three steps are required to fully control a macOS user’s wallpaper:
- Create a custom command to provide a wallpaper image to your devices.
- Create a custom configuration profile to provide a path to the wallpaper image.
- Create a policy to deliver and enforce the wallpaper.
To create a custom command for wallpaper for macOS:
- Log in to the JumpCloud Admin Portal.
- Go to DEVICE MANAGEMENT > Commands.
- Click (+), then choose Command to create a new command.
- Under Name, enter a name for the command. For example, Desktop Wallpaper.
- Under Run As, choose root.
- Under Type, click Mac.
- Copy the following code block and update the URL value with the location of the hosted background image file. Then enter it in the Command field in JumpCloud:
#!/bin/bash
# Change this line
URL="https://your-image-url/background.jpg"
# Do NOT change below
# Destination path
DESTINATION="/Users/Shared/background.jpg"
# Download the image file
curl -o "$DESTINATION" "$URL"
- Under Event, choose Run Manually.
- (Optional) Under Timeout After and Time to Live Settings, adjust the times to your preference.
- Select the Devices or Device Groups tab, then bind the command to the device or group where you want to set the wallpaper.
- Click save.
- Find the newly created command in the commands list and click Run Now to send the image to the device or group of devices.
Creating a Custom Configuration Profile
Create a custom configuration profile using a profile editor like iMazing or Apple Configurator 2. The following instructions use iMazing for example.
To create the custom configuration profile in iMazing:
- Go to File > New to create a new profile.
- The General settings display. Configure the following options:
- Enter a Name for the profile.
- Leave the Identifier unchanged.
- Under Payload Scope, select System.
- Under Target Device Type, select Mac.
- In the top right search box, search for Desktop Picture and click + Add Configuration Payload.
- The Desktop Picture settings displays.
- Under Desktop picture path, enter the local path configured in the previous section:
/Users/Shared/background.jpg
- Go to File > Save to save the profile. Proceed to the next section and use this profile to create the Custom MDM Policy.
Creating a Custom Policy to Enforce a Wallpaper Change
You'll create a custom policy to deliver a .mobileconfig file to enforce the wallpaper change.
- In the Admin Portal, navigate to DEVICE MANAGEMENT > Policy Management.
- Under the All tab, click +.
- Select the Mac tab.
- On the New Policy panel, select the Mac tab.
- Select the MDM Custom Configuration Profile policy, then click configure.
- For Policy Name, enter a name for this policy. For example, Desktop Wallpaper.
- Under Settings, click upload and select the .mobileconfig file you modified in Creating a Custom Configuration Profile above.
- (Optional) Select the Device Groups tab. Select one or more device groups where you’ll apply this policy. For device groups with multiple OS member types, the policy is applied only to the supported OS.
- (Optional) Select the Devices tab. Select one or more devices where you’ll apply this policy.
- Click save. This sets the desktop wallpaper on the device or device group.
Creating a Wallpaper Modification Policy
This policy gives users the ability to change the desktop wallpaper on their macOS devices. Configuring and applying this policy lets users use the Apple menu > System Settings > Wallpaper and upload a company wallpaper file that you provide.
To create Mac Desktop Wallpaper Modification policy:
- Log in to the JumpCloud Admin Portal: https://console.jumpcloud.com/login.
- Go to DEVICE MANAGEMENT > Policy Management.
- Under the All tab, click ( + ).
- Select the Mac tab.
- Locate the Wallpaper Modification policy, then click configure.
- Under Policy Name, enter a name for the policy. For example, EMEA Wallpaper Modification.
- Under Settings, select Allow Changing Desktop Wallpaper to let users control their wallpaper through Apple menu > System Settings > Wallpaper. If you don’t select this field, users cannot change their wallpaper on their macOS devices.
- (Optional) Select the Device Groups tab. Select one or more device groups where you’ll apply this policy. For device groups with multiple OS member types, the policy is applied only to the supported OS.
- (Optional) Select the Devices tab. Select one or more devices where you’ll apply this policy.
- Click save.