You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2026. It is now read-only.
Repository navigation
Commit 7a82e00
Browse filesBrowse the repository at this point in the historyBrowse files
Rolling the device agent out through an MDM has two halves. First, **deploy**: your MDM installs the agent and delivers its managed configuration so every device enrolls without any interactive login. Second, **verify**: connect the same MDM to the dashboard so the platform can pull your managed-device inventory and show exactly which devices are covered by a running agent, and which aren't. Optionally, a third: **export** that coverage into your compliance platform so it becomes continuously-tested evidence.
9
10
@@ -28,18 +29,36 @@ Upload that file to your MDM as a Package (Jamf), Custom App (Iru), or line-of-b
28
29
29
30
## The managed configuration
30
31
31
-
The agent recognizes a user through a managed configuration delivered by IT. No browser flow and no manual enrollment on the device. It's a schema-versioned document (`v: 1`) carrying the user's work email, an organization token, and optional settings:
32
-
33
-
```json
34
-
{
32
+
The agent recognizes a user through a managed configuration delivered by IT. No browser flow and no manual enrollment on the device. It's a schema-versioned document (`v: 1`) carrying the user's work email, an organization token, and optional settings. It can be delivered through two channels, each with its own on-disk form:
33
+
34
+
<CodeWithTabsclient:visible
35
+
tabs={[
36
+
{
37
+
label: "Configuration Profile (plist)",
38
+
language: "xml",
39
+
code: `<?xml version="1.0" encoding="UTF-8"?>
40
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-**Configuration Profile (macOS, preferred)**: a Custom Settings payload (`com.apple.ManagedClient.preferences`) targeting the preferences domain **`com.speakeasy.agent`**, materialized by the OS at `/Library/Managed Preferences/com.speakeasy.agent.plist`. Declarative, MDM-native, no standing script, and users cannot edit it without removing the profile. When a device has both a profile and the JSON file, the profile wins per field.
45
64
-**Script-dropped `managed.json` (works everywhere)**: a script or package payload writes the JSON file to a fixed system path:
@@ -50,18 +69,19 @@ It can be delivered through two channels:
50
69
| Linux |`/etc/speakeasy/managed.json`|
51
70
| Windows |`%ProgramData%\Speakeasy\managed.json`|
52
71
53
-
Two constraints catch most first deployments, regardless of MDM:
54
-
55
-
-**The configuration must be readable by the logged-in user**, not just root. The agent runs as that user. For the JSON file use `0644 root:wheel` (or `0640` with the user's group); `0600` silently breaks enrollment. Profiles have no permission trap. The OS owns the plist.
56
-
-**The agent reads its configuration at daemon startup.** Any policy that writes the file must restart the daemon afterwards, on every run. A rotated token sits inert on disk until the next restart. The same restart rule applies to profile updates. On a pkg-installed macOS device, restart the console user's LaunchAgent (`launchctl kickstart -k "gui/$(id -u)/com.speakeasy.daemon"`), substituting the console user's uid when run from a root MDM policy. Linux and Windows service installs still use `speakeasyd -service restart`.
72
+
The configuration must be readable by the logged-in user, not just root: the agent runs as that user. For the JSON file use `0644 root:wheel` (or `0640` with the user's group); `0600` silently breaks enrollment. Profiles have no permission trap. The OS owns the plist.
57
73
58
74
<Callouttype="warning">
59
75
The `org_token` is a credential, but the device cannot keep it secret from its own user: the agent runs as the logged-in user, who can therefore read the configuration. Treat the token as a revocable, organization-scoped credential: scope its permissions on that assumption and rotate it rather than trying to hide it. Pass it into your MDM as a script parameter or templated variable, never as a literal in a script body.
60
76
</Callout>
61
77
62
78
### Verify on the device
63
79
64
-
After the policy has run and the daemon restarted, `speakeasy status` on a target device should report the enrolled email with `source: managed` (surfaced in the menu bar UI as "Provisioned by IT"). If it reports `source: local` or `source: none`, the usual causes are, in order: the daemon hasn't restarted since the configuration changed, the file permissions are too tight, or the file is at the wrong path.
80
+
`speakeasy status` on a target device should report the enrolled email with `source: managed` (surfaced in the menu bar UI as "Provisioned by IT"). If it reports `source: local` or `source: none`, the usual causes are the file permissions being too tight, the file sitting at the wrong path, or the daemon not having restarted since the configuration was written (see [Updating the managed configuration](#updating-the-managed-configuration) below).
81
+
82
+
### Updating the managed configuration
83
+
84
+
The agent reads its configuration at daemon startup, not continuously, so a change to the file or profile doesn't take effect until the daemon restarts. Any policy that writes the file must restart the daemon afterwards, on every run: a rotated token sits inert on disk until the next restart. The same restart rule applies to profile updates. On a pkg-installed macOS device, restart the console user's LaunchAgent (`launchctl kickstart -k "gui/$(id -u)/com.speakeasy.daemon"`), substituting the console user's uid when run from a root MDM policy. Linux and Windows service installs still use `speakeasyd -service restart`.
0 commit comments