Post

Create and deploy a macOS configuration profile (.mobileconfig)

Create and deploy a macOS configuration profile (.mobileconfig)

This post covers a workflow to:

  1. Create a macOS configuration profile (.mobileconfig) with iMazing Profile Editor.
  2. Deploy it using an MDM (Microsoft Intune in this example).

The workflow applies to many apps and macOS features. For this post, we’ll use DDM OS Reminder as the example payload.

What is a .mobileconfig?

A .mobileconfig is an Apple configuration profile used to configure settings on macOS (and other Apple platforms).

Technically, it’s a plist document that contains:

  • One or more payloads (plist dictionaries of key:value pairs)
  • Profile metadata such as a name and identifier
  • An optional signature (typically handled by the MDM, so you usually don’t need to sign it yourself)

What you’ll need

  • A Mac (or PC)
  • iMazing Profile Editor
  • Admin access to Microsoft Intune (or another MDM)

1. Install iMazing Profile Editor

iMazing Profile Editor provides an easy-to-use GUI for creating and editing .mobileconfig files. It uses a fork of the ProfileManifests repository to provide a UI for many community macOS payloads.

2. Add a payload

In iMazing Profile Editor, a payload is the set of configuration keys for a specific feature or app.

Example (DDM OS Reminder):

  1. Open iMazing Profile Editor.
  2. Scroll until you find DDM OS Reminder.
  3. Select it and press + Add Payload.

DDM OS Reminder payload in iMazing

Tip: You can search by pressing the magnifying glass in the top-right corner, or by selecting any payload in the left sidebar and typing the first letters of the payload name.

3. Configure the payload

Configure the keys you care about for the payload you added.

For the example (DDM OS Reminder), all keys are optional; leave a value empty to use the default.

DDM OS Reminder configuration in iMazing

Tip: Hover over the ? next to each key to see details and the default value.

4. Save the profile

Save the .mobileconfig via the top menu.

5. Create the policy in Intune

The deployment flow is similar in other MDM solutions: create a custom profile policy, upload the .mobileconfig, then assign it to your target devices/users.

  1. In Intune, go to DevicesmacOSConfiguration.
  2. Press CreateNew policy.
  3. Under Profile type, select Templates.
  4. Select Custom.
  5. Set an Intune policy display name (shown in Intune), then press Next.

Create a custom macOS profile in Intune

6. Configure and assign the policy

  1. Set a Custom configuration profile name (shown locally under System SettingsDevice Management).
  2. Leave the deployment channel as Device Channel.
  3. Upload the .mobileconfig you created.
  4. Press Next, choose your Assignment Groups, and press Create to publish the policy.

Upload the .mobileconfig and assign groups in Intune

Bonus tip: Use local preference manifests

Sometimes the DigiDNA/ProfileManifests repo may be out of date. If you want to create a .mobileconfig using a local preference manifest provided by the developer, you can set a custom override.

  1. Go to iMazing Profile Editor → Settings… in the menu bar.
  2. Go to Manifests → Local folder for custom and override preference manifests → Choose…
  3. Select the folder where you’ll store your custom preference manifest overrides.
  4. Place your .plist preference manifests in the chosen folder. iMazing Profile Editor will automatically match the app based on the application domain in the file name.

Upload the .mobileconfig and assign groups in Intune

This post is licensed under CC BY 4.0 by the author.