Lesson 3 of 9 · 27m
Configuration Profiles, Payloads, and Compliance State
Read and design .mobileconfig profiles as layered policy, understand scope and removal behavior, and verify what actually landed.
Most profile incidents are not exotic. They are layering mistakes: the same payload deployed twice with conflicting values, a user-scoped profile expected to affect a system daemon, or a removal model nobody tested until the security team asked for evidence. A profile is a signed bundle of policy payloads, but operationally it is a contract about state.
Read the plist before trusting the console
A .mobileconfig is a property list. Inspect it locally before deployment:
plutil -p wifi-policy.mobileconfig
plutil -lint wifi-policy.mobileconfigA minimal profile skeleton looks like:
<dict>
<key>PayloadType</key><string>Configuration</string>
<key>PayloadIdentifier</key><string>org.example.mac baseline</string>
<key>PayloadUUID</key><string>7A41D0C4-4ACF-4D0D-8AC3-6D1C9D967511</string>
<key>PayloadVersion</key><integer>1</integer>
<key>PayloadContent</key><array>...</array>
</dict>Identifiers must be stable if you want replacement semantics. Randomly generated identifiers often cause duplicate profiles rather than upgrades.
Payload scope determines where truth applies
A payload can be system-scoped, user-scoped, or sensitive to enrollment type. Restrictions that work on supervised ADE machines may be unavailable under User Enrollment. The local verification command is still your friend:
profiles list
profiles show -type configuration
sudo profiles install -type configuration -path ./baseline.mobileconfigPrefer installing through MDM for fleet operations; local installation is for controlled testing because manually installed profiles have different removal and trust behavior.
Conflicts are resolved by strictness, but not predictably enough
When multiple profiles deploy overlapping restrictions, the strictest value often wins. That is not an architecture. It means an emergency exception profile can permanently win over your baseline. Model policy in layers:
security baseline everyone, non-optional
role policy engineering, finance, lab machines
temporary exception time-bounded, ticketed, auto-expiringInventory actual installed payload identifiers and compare them to desired assignment. Do not merely count profile names.
Removal behavior is part of the design
Some payloads remove their managed artifacts when the profile is removed; others leave configuration behind or require additional commands. Test removal before mass deployment. For certificate and network payloads especially, stale state can survive longer than the profile that created it.
Field notes
- Configuration profiles are not a general scripting channel. Use them for policy state, not procedural setup.
- Never deploy a profile whose UUID collisions you do not understand. UUID reuse is meaningful in profile replacement.
- Signing a profile proves origin to users, but unsigned profiles can still be installed in some contexts; enrollment trust is the stronger control.
- A profile can be present and still ineffective because the target process caches settings or the scope is wrong.
Was this lesson helpful?