Deploying to a managed fleet is one profile and one command. The profile
grants the macOS approvals nobody should have to click through. The command
installs AgenShield and tells the Mac which fleet it belongs to.
This page is the whole path, in order. Read it once and you can deploy.
This page describes macOS. For Windows machine enrollment policy, ADMX,
and signed MSI or bootstrap deployment, use
Windows MDM deployment.
Before you start
What you are actually setting up
Two independent things. Keeping them apart is what makes the rest of this simple.Approvals
What macOS demands before any security product can run: extension approval,
Full Disk Access, network filtering, notifications, background items.Only an MDM can grant these. They are identical for every device you will
ever deploy — no token, no tenant, nothing that expires.
Enrollment and install
Which fleet this Mac joins, and getting the software onto it.This is the part that changes — when you rotate a campaign, pin a
version, or split a rollout into waves.
This is why the recommended profile holds no enrollment token. Upload it to
your MDM once and leave it alone — it survives campaign rotation, version
pinning, and re-org of your device groups, because none of those change what
macOS needs to approve.
Deploy
1
Create a campaign
In the Frontegg Portal, open AgenShield →
Devices → New campaign. Name it after the wave it covers —
Engineering,
Pilot, Contractors. Leave Pinned version empty unless change control
requires a fixed build.The campaign page now shows everything below. Keep it open.2
Push the configuration profile
Download
deployment.mobileconfig from the campaign’s MDM artifacts and
upload it to your MDM as a custom macOS profile, scoped to your device group.It must be delivered on the device (system) channel, not the user
channel. Many MDMs re-sign uploaded profiles — that is fine.Exact clicks: Microsoft Intune ·
Jamf ·
Kandji, JumpCloud, Mosyle and others.3
Run the install script
Copy the install script from your campaign’s MDM guide in the Frontegg Portal
and run it from your MDM as a root shell script against the same device
group:Run as
root, which is what MDM script runners do by default. No wrapper is
needed: with nobody at a terminal the script works out which signed-in user
the Mac belongs to, installs for that user, and hands the files back to them.It exits non-zero if the device does not finish enrolling, so a green result
in your MDM means the device is genuinely on your fleet.The script downloads the whole installer before it runs anything. If the
download fails (an expired or revoked campaign, no network, a proxy that
blocks it), it exits non-zero and your MDM reports a failure. The one-line
curl … | bash command for a single Mac also installs, but it exits 0 when
the download fails, so in an MDM it would report a success for a Mac that
installed nothing.4
Check one device
It appears under Devices in the Frontegg Portal within a minute, and the
campaign’s events timeline gains a Registration entry. See
Verify a device.
How a device joins your fleet
Worth understanding once, because every failure mode below is a break in this chain:- Your campaign mints an enrollment token.
- The token is baked into the install command for that campaign.
- The command installs AgenShield and hands it the token.
- AgenShield registers with your backend and generates a keypair on the device. That keypair — not the token — is the device’s lasting identity.
- The profile pre-approves the extensions, so they activate with no prompt at the first login.
Confirming it is enforcing, not just enrolled. The device page shows when
the Mac last received policy. A device that shows as connected but has never
received policy is activated and reporting — it is not blocking anything yet.
Verify a device
On a target Mac:If you cannot run a script
Some fleets cannot, or would rather have their MDM report install state through its own software inventory. Push the all-in-one profile (agenshield.mobileconfig) and the signed .pkg instead.
The table above pairs each profile with its usual installer, but the pairing is
looser than that in one direction. What matters is that the enrollment token
reaches the Mac by at least one route:
- The install command carries a token, so it works with either profile. With the all-in-one profile the command’s token is used and the profile’s is the fallback — harmless, and slightly belt-and-braces.
- The package carries no token, so it needs the all-in-one profile
(
agenshield.mobileconfig) to supply one. Paired with the token-free profile the Mac receives every approval and then never enrolls.
Reference: what the profile contains
You do not need this to deploy — it is here for security review.The Full Disk Access payload is the one never to trim: without it a device
enrolls and reports healthy but cannot enforce file policy until someone
toggles the grant by hand — the manual step MDM deployment exists to avoid.
Profiles downloaded before the transparent-proxy payload was added do not
carry it. Replace them with a fresh download from the campaign. macOS applies
a profile update by removing every payload and installing the new profile, so
AgenShield’s extensions restart for a moment; current releases bring them back
on their own. Each Mac that had set up its network proxy itself then removes
that older setting once: on its own for an administrator, or through a
Remove old copy button explained by a One last approval for AgenShield
notification — see
VPN password prompt during an update.
Troubleshooting
A profile installs atomically — one rejected payload discards all of them. To
find which, see Profile fails to install.
Next
Microsoft Intune
Including the connected integration that pushes campaigns for you.
Jamf
Jamf Pro and Jamf Now.
Other MDMs
Kandji, JumpCloud, Mosyle, Workspace ONE, and anything else.
Enrolled devices
Reading fleet health once devices land, and how to offboard cleanly.