Configuration profile not defining multiple settings #170
-
Preface: I'm an utter neophyte at XML and .mobileconfig files, so please forgive what is likely to be my thundering ignorance. The feature set of the Privileges app is a fantastic fit for my needs. I only have some modest requirements around locking the app preferences down to make it perfect. I have Jamf Pro available to push the profiles to my test Mac. Unfortunately I'm struggling to figure out why I can't seem to write a .mobileconfig file that defines multiple preference values. The profiles I've tried with single prefs work fine; it's just when I put multiple prefs that things fail; none of the settings are applied. As I'm not really a coder and have next to no experience with XML in particular, I'm kind of cargo-culting my way around, but to no avail. Here is my current .mobileconfig test contents wherein I'm just trying to test the implementation of LimitToUser and ExpirationIntervalMax together in the same profile. Surely I am making some really obvious rookie mistake. Code to follow if I can even figure out how to get it to render inline properly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Okay, figured out the formatting: <?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>PayloadContent</key>
<dict>
<key>corp.sap.privileges</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<!-- Defines which local users can request elevation -->
<key>LimitToUser</key>
<array>
<string>test1</string>
<string>test3</string>
</array>
<!-- Defines maximum time of elevated permissions, per request, in minutes -->
<key>ExpirationIntervalMax</key>
<integer>30</integer>
</dict>
</dict>
</array>
</dict>
</dict>
<key>PayloadDescription</key>
<string/>
<key>PayloadDisplayName</key>
<string>Privileges configuration</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>com.apple.ManagedClient.preferences.36132147-235E-4663-ADA8-2664C67C4DD2</string>
<key>PayloadOrganization</key>
<string>SAP SE</string>
<key>PayloadType</key>
<string>com.apple.ManagedClient.preferences</string>
<key>PayloadUUID</key>
<string>36132147-235E-4663-ADA8-2664C67C4DD2</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Configures the Privileges app.</string>
<key>PayloadDisplayName</key>
<string>Privileges configuration</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>CF401A42-35CA-4DA6-9123-5A49C87ECB5A</string>
<key>PayloadOrganization</key>
<string>SAP SE</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>50870D16-7AAD-478B-BFFE-BED09499F7E0</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist> |
Beta Was this translation helpful? Give feedback.
-
Indentation is a little wonky here, but it doesn't look like that in my editors, not that it should matter with regards to functionality. |
Beta Was this translation helpful? Give feedback.
If you use the
Upload
function in Jamf Pro, your profile must just look like this, because Jamf tried to make it easier for their users: