Skip to main content

Migrate Macs from Another MDM to Swif

Move Macs from any MDM to Swif without erasing them, using Swif's macOS silent installer.

Move Macs from another MDM, such as Rippling, JumpCloud, Mosyle, or Miradore, to Swif without erasing them. You use your current MDM to install Swif's macOS silent installer, then release the Macs from your current MDM. Swif then takes over.

This article covers any MDM. For step-by-step instructions in a specific MDM, see:


How it works

  1. Your current MDM installs Swif's macOS silent installer on your Macs, like any other package.

  2. The Swif agent removes the old MDM profile, if macOS allows it.

  3. You release the Macs from MDM in your current MDM.

  4. The Swif agent opens the Swif profile in System Settings > General > Device Management, at its next check.

  5. The user clicks Install, and enters their password. The Mac is now managed by Swif.

You don't need your old MDM's removal key. The Swif agent removes the old profile itself, when macOS allows it. When it doesn't, releasing the Mac from MDM in your current MDM removes it.

Release the Macs only after the installer is on them. Once a Mac is released, your current MDM can't install anything on it.


Requirements

Requirement

Details

Macs

Company-owned. The silent installer doesn't support BYOD Macs.

Your current MDM

Still managing the Macs, and able to deploy a package (.pkg). To run the optional check below, it also needs to run scripts as root.

Users

A user who's a local administrator on each Mac, to approve the Swif profile

The installer

Swif's macOS silent installer, downloaded from Swif. See Deploying Swif Silently on Mac/macOS Machines.


Step 1: Check your Macs (optional)

Run this script through your current MDM, on all your Macs, as root. It shows which Macs the Swif agent can move on its own, and which need to be released from MDM first. It only reads information, and changes nothing.

#!/bin/bash
# Reports each Mac's MDM profile, for a migration to Swif.
# Read-only. Run through your current MDM, as root.
# Output: one line per Mac:
# serial,profile_identifier,mdm_payload_identifier,removal_password_payload,removal_disallowed,swif_agent_running
set -u
serial=$(/usr/sbin/ioreg -rd1 -c IOPlatformExpertDevice | /usr/bin/awk -F'"' '/IOPlatformSerialNumber/{print $4}')
xml=$(/usr/bin/mktemp)
/usr/bin/profiles list -output stdout-xml > "$xml" 2>/dev/null

# The MDM payload, and the profile that contains it
payload="//key[.='PayloadType']/following-sibling::string[1][.='com.apple.mdm']/.."
profile="${payload}/../.."
pid=$(/usr/bin/xmllint --xpath "string(${profile}/key[.='ProfileIdentifier']/following-sibling::*[1])" "$xml" 2>/dev/null)
mpid=$(/usr/bin/xmllint --xpath "string(${payload}/key[.='PayloadIdentifier']/following-sibling::*[1])" "$xml" 2>/dev/null)
# Is the MDM profile locked with a removal password?
rpw=$(/usr/bin/xmllint --xpath "count(${profile}//string[.='com.apple.profileRemovalPassword'])" "$xml" 2>/dev/null)
# Can the MDM profile be removed?
node="${profile}/key[.='ProfileRemovalDisallowed']/following-sibling::*[1]"
rmd=$(/usr/bin/xmllint --xpath "string(${node})" "$xml" 2>/dev/null)
[ -n "$rmd" ] || rmd=$(/usr/bin/xmllint --xpath "name(${node})" "$xml" 2>/dev/null)
/bin/rm -f "$xml"

swif=no; /usr/bin/pgrep -qx swifteam && swif=yes
echo "${serial},${pid:-none},${mpid:-none},${rpw:-0},${rmd:-absent},${swif}"

Example output:

C02XXXXXXXXX,com.example.mdm.profile,com.example.mdm,0,absent,no

What the output means

Column

Shows

What to do

removal_disallowed

true: the MDM profile can't be removed on the Mac. false or absent: it can.

If true, release the Mac from MDM in your current MDM, after the installer is on it.

removal_password_payload

1 or more: the MDM profile is locked with a removal password. 0: it isn't.

If 1 or more, release the Mac from MDM in your current MDM, after the installer is on it.

swif_agent_running

yes: the Swif agent is running. no: it isn't installed yet.

If no after you deploy the installer, see Troubleshooting.

profile_identifier, mdm_payload_identifier

The old MDM profile's identifiers

For reference only. Swif finds the old profile on its own.

macOS never shows a profile's removal password, only whether there is one. So no script can find it for you.


Step 2: Deploy the silent installer with your current MDM

  1. Download the latest macOS silent installer from Swif. See Deploying Swif Silently on Mac/macOS Machines. Download a new copy for each migration, rather than reusing an old one.

  2. Upload it to your current MDM, as a package, and deploy it to your Macs. Start with one test Mac.

  3. Check that the Swif agent is running. The Mac appears in Swif, or the script in Step 1 shows swif_agent_running as yes.

On Macs whose old profile can be removed, the Swif agent removes it, and opens the Swif profile. Users then see the Swif profile in System Settings > General > Device Management. They click Install, and enter their password.


Step 3: Release the Macs from MDM in your current MDM

Once the installer is on all your Macs, release them from MDM in your current MDM. Each MDM names this differently, such as Release from MDM, Unenroll, or Remove MDM.

This step is required for Macs whose old MDM profile:

  • can't be removed (removal_disallowed is true)

  • is locked with a removal password (removal_password_payload is 1 or more)

Nothing on the Mac can remove these profiles, with or without a key. Only your current MDM can.

After you release a Mac, the Swif agent opens the Swif profile at its next check. The user clicks Install, and enters their password.

Don't release the Macs in Apple Business Manager. Releasing a Mac from MDM in your current MDM is different from Release Devices in Apple Business Manager. Releasing it in Apple Business Manager removes the Mac from your organization, and you can't add it back without Apple Configurator.


Step 4: Move ADE Macs in Apple Business Manager

If your Macs were enrolled with Automated Device Enrollment (ADE), change their MDM server in Apple Business Manager to Swif. Otherwise, if a Mac is erased later, it enrolls in your old MDM again.

On macOS 26 and later, Apple Business can do the whole migration, without the silent installer, and without erasing. Assign the Macs to Swif with an enrollment deadline. See Migrate Apple Devices to Swif Without Erasing Them Using Apple Business (OS 26 and Later).


Step 5: Check the migration

On each Mac, or a few test Macs:

  • The Mac appears in Swif.

  • Only Swif's MDM profile is installed. In Terminal, run sudo /usr/bin/profiles list, or check System Settings > General > Device Management.

The old MDM's apps and agents aren't removed by the Swif agent. Uninstall them separately. For Rippling, see Clean Uninstallation of Rippling from macOS Devices Using Swif.


Troubleshooting

The Swif profile never appears

  • Check that the Swif agent is running. Run the script in Step 1, and check that swif_agent_running is yes. If it's no, download the silent installer from Swif again, and deploy it again.

  • Check whether the old profile can be removed. If removal_disallowed is true, or removal_password_payload is 1 or more, release the Mac from MDM in your current MDM.

  • Wait for the next check. The Swif agent opens the Swif profile at its next check, after the old profile is gone.

The user sees "Profile installation failed"

The old MDM profile is still installed. Release the Mac from MDM in your current MDM. The Swif agent then opens the Swif profile again.

I can't find my old MDM's removal key

You don't need it. Release the Macs from MDM in your current MDM instead, after the installer is on them.

The Mac enrolled in the old MDM again after an erase

Its MDM server in Apple Business Manager is still the old MDM. Change it to Swif. See Step 4.


Related resources

Did this answer your question?