Skip to content

Instantly share code, notes, and snippets.

@bryanzak
Last active December 17, 2018 18:20
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanzak/0d151bbd739b36059e1e2595c1bf289b to your computer and use it in GitHub Desktop.
Save bryanzak/0d151bbd739b36059e1e2595c1bf289b to your computer and use it in GitHub Desktop.
.mobileconfig profile to block access to Mail.app and Messages.app Format based on https://github.com/nmcspadden/Profiles/blob/master/TesterAccount.mobileconfig
<?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>PayloadIdentifier</key>
<string>org.ops.mcx.blockapps</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>3b91838e-3ad4-4ce3-be6b-b8ceac33b3cd</string>
<key>PayloadOrganization</key>
<string>Omaha Public Schools</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadDisplayName</key>
<string>Application Restrictions</string>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadType</key>
<string>com.apple.applicationaccess.new</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadIdentifier</key>
<string>MCXToProfile.3b91838e-3ad4-4ce3-be6b-b8ceac33b3cd.alacarte.customsettings.dd843058-b67d-4b9e-baf4-4b665f6a74c7</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadUUID</key>
<string>dd843058-b67d-4b9e-baf4-4b665f6a74c7</string>
<key>PayloadDisplayName</key>
<string>Block Mail &amp; Messages</string>
<key>familyControlsEnabled</key>
<true/>
<key>pathBlackList</key>
<array>
<string>/Applications/Mail.app/</string>
<string>/Applications/Messages.app/</string>
</array>
<key>pathWhiteList</key>
<array>
<string>/</string>
</array>
<key>whiteList</key>
<array>
</array>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment