Config Profile and manage ALL the things…just about

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>DiscoverableMode</key>
<string>Contacts Only</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>com.apple.sharingd.9a8471fe-dfde-42d8-aa8b-8758fb728154</string>
<key>PayloadType</key>
<string>com.apple.sharingd</string>
<key>PayloadUUID</key>
<string>9a8471fe-dfde-42d8-aa8b-8758fb728154</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Lock Airdrop to Contacts Only</string>
<key>PayloadDisplayName</key>
<string>Airdrop Settings</string>
<key>PayloadIdentifier</key>
<string>com.apple.sharingd</string>
<key>PayloadOrganization</key>
<string>TEST</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>04c17696-b0c4-46e6-9261-ea9f5c4bd643</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.apple.sharingd</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>DiscoverableMode</key>
<string>Contacts Only</string>
</dict>
</dict>
</array>
</dict>
</dict>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>com.apple.sharingd.95043937-af3e-42f3-b1b1-db331d097a5a</string>
<key>PayloadType</key>
<string>com.apple.ManagedClient.preferences</string>
<key>PayloadUUID</key>
<string>95043937-af3e-42f3-b1b1-db331d097a5a</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
  1. Try to change it in the interface. If you can switch the setting on and off in the UI it may not be respecting the configuration profile. HOWEVER, the interface doesn’t always represent the true setting value when set with a configuration profile. If you use our example of “Contacts Mode” vs “Everyone” for AirDrop, you can toggle between the 2 settings but nothing is actually being changed. Some settings will allow you to change them but when you quit and relaunch the application you’ll see that it’s set to the managed setting.
  2. If you watch the log stream while changing the setting you may not see anything change, which would mean the configuration profile is the authoritative setting. You can use the same command from before log stream --debug --predicate 'process == "cfprefsd" && eventMessage CONTAINS "wrote the key"'to watch preferences be set.
  3. Or you can use a little application I wrote to read from cfprefsd called YAST (I’m open to suggestions for names). https://github.com/boberito/YAST

--

--

--

IT Specialist in the Apple world. Jamf guru, wizard of Mac Management, and mastermind of Apple trivia. The views are my own and not the views of my employer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How Ballerina addresses your Code-First and Design-First API Approaches

A to Z of Scrum

TryHackMe: Alfred Room Writeup

Leave The Bug Alone

What happens when you type https://www.holbertonschool.com in your browser and press Enter?

Julia’s Big Problem With Namespace

Why should you integrate software? | LiveAgent

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bob Gendler

Bob Gendler

IT Specialist in the Apple world. Jamf guru, wizard of Mac Management, and mastermind of Apple trivia. The views are my own and not the views of my employer.

More from Medium

“Slicing: Why should we make our tasks smaller?” - Visual Nugget 22.06

Hacking WORDLE | How does it work and what’s the real best first guess?

The slaves of code

The Secret to Speed and Stability