Skip to main content
Other MDMs cover — same profile, same command, any vendor. 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)

Upload a freshly downloaded profile. Workspace ONE cannot parse .mobileconfig files carrying a <!DOCTYPE ...> line — it reports an error like 3840 Encountered unexpected character and the profile reaches the device corrupted, or not at all. Campaign profiles no longer include that line, but an older download or a hand-rebuilt profile may. Check with head -2 deployment.mobileconfig; if line 2 is a <!DOCTYPE ...> line rather than <plist version="1.0">, delete that line and re-upload. Full steps: Profile fails to install.
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:
  1. Can it push an unmodified custom .mobileconfig on the device channel? If yes, AgenShield’s approvals will be silent.
  2. Can it run a root shell script? If yes, the install is silent too.
If the answer to the second is no, push the campaign’s all-in-one profile and the signed .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 domain com.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:
  • UserEmail holds 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.
  • DeviceName is ignored when it is still a variable, empty, or longer than 128 characters.
  • Without either key, nothing changes.
This needs a Frontegg Portal version that supports signing in from the profile; with an older one, the Mac keeps the normal sign-in. On Windows, a Group Policy startup script signs people in instead; see Sign people in with Group Policy.
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.
To see what your MDM filled in on a Mac:
A value that still reads $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:
The device appears under Devices in the Frontegg Portal within a minute of the command completing. If it does not, work through the troubleshooting table.

Next

MDM enrollment

What each payload does and how a device joins your fleet.

Enrolled devices

Reading fleet health once devices land.