AgenShield does not require a specific MDM. If yours can push a custom macOS
configuration profile on the device channel and run a root shell script, it
can deploy AgenShield with no user interaction.
Read MDM enrollment first — it explains what the two
pieces are and why. This page is the clicks.
These steps are for macOS. Windows deployments through Group Policy,
Configuration Manager, or another management tool use
Windows MDM deployment.
The recipe, whatever your MDM calls it
1
Upload the profile
Upload
deployment.mobileconfig unmodified, on the device (system)
channel, scoped to your device group. Many MDMs re-sign uploaded profiles —
that is fine.You do this once. The profile carries no enrollment token, so it stays valid
across campaign rotations and new releases.2
Run the install script as root
Add the install script from your campaign’s MDM guide in the Frontegg Portal
as a root script or command object, targeting the same group:Give it a generous timeout — the download and install together take a few
minutes. It exits non-zero if the installer cannot be downloaded or the
device does not finish enrolling.
Upload the profile as-is rather than rebuilding it in your MDM’s native payload
editors. It already pairs every payload with the correct extension identifiers,
including the Full Disk Access grant — the one that matters most. A device
without it enrolls and looks healthy but cannot enforce file policy.
Options for unattended runs
Set these at the top of the script. Most rollouts need none of them; the full list with defaults is in Installing and uninstalling.
For a silent install, set the variable on the
bash that runs the script. The
Silent install switch in the Frontegg Portal’s MDM section gives you this
script to copy:
Kandji
Deploying the package as a Custom App instead? See
Package scripts for the
audit, pre-install and post-install scripts.
Kandji also has native System Extension and PPPC library items. If you prefer to
mirror the payloads there, use the campaign’s profile as the reference — and push
either the native items or the uploaded profile, never both.
JumpCloud
Devices must be enrolled in JumpCloud MDM — not only the agent — for the
approval payloads to apply. JumpCloud re-signs profiles.
The command’s result view is trustworthy: a red result means the device did not
enroll, not that the script was noisy.
Mosyle
Workspace ONE (Omnissa)
Deploying the package through Apps → Native → Internal instead of a
script? See Package scripts
for the install check, pre-install and post-install scripts.
Workspace ONE fixes a profile’s channel when it is created, so a profile made
as a User Profile cannot be switched to Device afterwards — delete it and create
it again. Upload the profile unsigned: signing it yourself grants no additional
permissions and turns it into an opaque binary your MDM console may no longer be
able to read.
Anything else
Ask your MDM two questions:- Can it push an unmodified custom
.mobileconfigon the device channel? If yes, AgenShield’s approvals will be silent. - Can it run a root shell script? If yes, the install is silent too.
.pkg instead — see
If you cannot run a script
and Package scripts.
You still push a profile either way; only the install mechanism changes.
Sign people in from the profile
On macOS, the AgenShield settings in the profile (preference domaincom.frontegg.AgenShield) can name each Mac’s user and computer, so people
never see a sign-in page. Both keys are optional strings, and each must be your
MDM’s own variable, never a literal value: the MDM fills in every Mac’s own
value when it installs the profile, while a literal email would name every Mac
in the group as the same person.
What the Mac does with them:
UserEmailholds a valid email address and nobody has signed in: the Mac counts as signed in as that person from the moment it enrolls (the email travels with its registration). AgenShield shows the email as the user, shows no sign-in page, and your organization’s policy rules for that email apply. Rules written for a user’s id, role or group do not match, because there is no sign-in to read them from.- Someone signs in: the sign-in wins. When they sign out, the Mac falls back to the profile’s email, not to the sign-in page.
- The email changes: the Mac switches to the new person.
- The email is removed, or the profile is: nothing changes. The Mac stays signed in as the last person the profile named, until the profile names someone else or the Mac is re-enrolled.
- An unfilled variable, an empty value, or anything that is not an email address counts as no email, and the Mac keeps the normal sign-in.
- The Mac was enrolled with an explicit token (the campaign install script,
or
agenshield setup --token), even on a Mac that has the profile: the explicit token decides the campaign. If the profile’s campaign belongs to the same organization, the Mac adopts the profile on its next start, which includes an upgrade: it takes the profile’s email and trusted root, and keeps the campaign the token chose. No uninstall is needed. A profile from another organization is ignored, and its people sign in as usual. Releases up to 2026.10.4 ignore the profile on any explicitly enrolled Mac until a full uninstall. DeviceNameis ignored when it is still a variable, empty, or longer than 128 characters.- Without either key, nothing changes.
The email is checked only for being an email address, not against your user
directory, so people who reach you through SSO with just-in-time provisioning
can be named before their first sign-in. Anyone with administrator rights on a
Mac can edit its managed preferences, and with them the email it reports.
$EMAIL, {{mail}} or {EmailAddress} is a variable
your MDM could not fill for that Mac — usually because its inventory record has
no user assigned.
Verify
On a target Mac:Next
MDM enrollment
What each payload does and how a device joins your fleet.
Enrolled devices
Reading fleet health once devices land.