codesign for Mac Admins: The Two-Minute Check Behind Every PPPC Profile
You built the PPPC profile. You deployed it. The device shows it installed. And the user still gets the Screen Recording prompt they can’t approve.
Nine times out of ten, the profile is pointed at the wrong thing. Not the wrong app, exactly, but the wrong description of the app: a Bundle ID with a typo, or a Code Requirement copied from a vendor doc that was written three signing certificates ago.
There’s a tool on every Mac you manage that tells you, in about two minutes, what the right values are. It’s called codesign, and if you’ve only ever used it by copying a command out of a KB article, this post is for you. Those same identifiers are also what macOS 27‘s new declarative app controls are built on, so this is worth knowing now, not later.
What does codesign actually do?
codesign lives at /usr/bin/codesign on every Mac. Developers use it to sign their apps. Apple’s code signing proves two things: who published the software, and that nobody has changed it since. The signature ties the app to the developer’s identity and to a hash of the app’s contents.
As an admin, you never sign anything. You read signatures, constantly, whether you realize it or not. Every PPPC payload, every Full Disk Access grant for your EDR agent, every “why is this app prompting again” ticket comes back to the same question: what exactly is this binary, and how does macOS know it’s the real one?
codesign is how you answer that from the app itself, instead of trusting a vendor doc or a forum post.
Four terms you’ll see in every codesign output
Term | What it is | Where you use it |
|---|---|---|
| Signing identifier (Bundle ID) | The app’s identity string, e.g. com.google.Chrome. Shows as Identifier= | The Identifier field in a PPPC payload |
| Team ID | 10-character ID for the developer’s Apple account, e.g. EQHXZ8M8AV. The trust anchor for third-party apps | Appears inside the Code Requirement |
| Designated Requirement (DR) | A rule describing what a legitimate copy of this app looks like | The Code Requirement field in a PPPC payload |
| cdhash | A hash of the app’s Code Directory: a fingerprint of one exact build of one exact binary | Troubleshooting, and the precise identifier declarative controls are moving toward |
The first three are what you’ve been pasting into Addigy’s PPPC editor. The fourth is the one to start paying attention to.
Three commands, all read-only
None of these change anything on the Mac. They inspect the app and print what they find.
1. See the signing info
codesign -dv –verbose=4 /Applications/Google\ Chrome.app
-d is display; the verbosity flag adds the parts you care about. You’ll get something like:
Identifier=com.google.Chrome
TeamIdentifier=EQHXZ8M8AV
Authority=Developer ID Application: Google LLC (EQHXZ8M8AV)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
CDHash=a1b2c3d4e5f6…
That’s the Bundle ID, the Team ID, the certificate chain, and the cdhash in one shot.
2. Get the Code Requirement
codesign -d -r- /Applications/Google\ Chrome.app
-r- prints the requirement to standard out:
designated => identifier “com.google.Chrome” and anchor apple generic and certificate leaf[subject.OU] = “EQHXZ8M8AV”
Everything after designated => is your Code Requirement. Read it in plain English: the app must identify as com.google.Chrome, must chain up to Apple, and must be signed by team EQHXZ8M8AV. A repackaged lookalike can’t satisfy all three, which is the whole point.
3. Verify the signature is intact
codesign –verify –verbose=2 /Applications/Google\ Chrome.app
No output means the signature is good. Errors here usually explain why a profile or a Gatekeeper check is misbehaving: a modified binary, a broken bundle, or an app that was never properly signed.
Where does codesign plug into Addigy?
This is the workflow behind our PPPC payload guide: run the two commands above, drop the Bundle ID into Identifier, drop the string after designated => into Code Requirement, pick the services the app needs, deploy.
Addigy’s PPPC editor can pre-fill these for common apps, and our KB carries vendor strings for tools like CrowdStrike and ESET. codesign is how you verify what got filled in, or build a profile for an app that isn’t on your admin Mac yet.
Three places it saves you a ticket:
- The profile installs but doesn’t apply. Almost always a Bundle ID or Code Requirement mismatch. Run codesign -d -r- on the actual installed app and diff it against what’s in the payload.
- A vendor update broke Full Disk Access. If the vendor changed their Bundle ID or signing certificate, the old Code Requirement no longer matches. Re-pull the values from the updated app, update the payload, redeploy. Our FDA guide covers this.
- The Static Code toggle. With Static Code on, macOS checks the requirement against the app on disk; off, it checks the running process. If an app passes –verify but still won’t get its grant, this setting is worth a look.
The so-what: macOS 27 changed PPPC, and these identifiers are the new foundation
If you read our OS 27 rundown in September, you know the headline: declarative management is no longer optional, and PPPC is the control that changed most. On first login after upgrading from a pre-27 OS, users are told which permissions each app holds and are sent to System Settings to review them. Alongside that, Apple shipped a new application settings declaration that replaces PPPC functionality: on first launch, the user sees what the app can access and a message from your org explaining why.
Two things follow from that.
First, the identifiers didn’t change. A declaration still has to name the app in a way a lookalike can’t spoof, and that means the same Bundle ID, Team ID, and signature details codesign has been printing all along. The tool you use to build a PPPC profile today is the tool you’ll use to build its declarative replacement.
Second, precision matters more. Declarative configurations are evaluated continuously on the device, not applied once. The cdhash, which pins one exact build of one exact binary, is the most precise identifier available, and it’s already in your codesign -dv output. As Apple moves more app-level controls into declarations, expect to see it asked for.
One caveat from the September post still holds: the application settings declaration is user channel only for now. Apple has said a system channel version is coming, and Addigy will support it when it lands. Until then, keep your legacy PPPC payloads in place for system-level grants, and expect your users to see the new prompts.
MacAdmins & MSPs: Do this today
Pick one app in your fleet that gets a PPPC grant. Run codesign -d -r- against it on a managed Mac and compare the output to what’s in your Addigy payload. If they match, good. If they don’t, you’ve just found a profile that’s been quietly failing.
Then pilot macOS 27 with a small group before it reaches everyone. The PPPC prompts alone are worth seeing firsthand so your help desk knows what’s coming. Our guide on deferring OS 27 updates walks through the Global Settings declaration that controls the window.
codesign is a small tool. The identifiers it reveals are becoming the currency of modern Mac management, and two minutes with it now will save you a lot of tickets later.
New to Addigy? Start a free trial and build your first PPPC payload with the values you just pulled.
