Plist with multiple dict items

DMH2000
Contributor

Can someone post how I add two dictionary items together?  From here, Troubleshooting_Microsoft_Azure_Login_Using_JamfAAD .  I don't know if I need an array added for both.  Also, can I add 2 of the same Preference Domain in a Configuration Profile?  An example of the below would be appreciated.  Thanks in advance!!

<?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>tokenRetryCount</key>
	<integer>3</integer>
	<key>tokenRetryWaitTime</key>
	<integer>42</integer>
</dict>
</plist>

and

<?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>useWKWebView</key>
	<true/>
</dict>
</plist> 

 

1 ACCEPTED SOLUTION

DMH2000
Contributor

I tested and found that putting two Plists for the same domain looked better on the computer under Profiles.  I now shows that it has 2 settings.  When I put both settings under one Plist, it showed that it has one setting.  I won't and didn't do that for our other config profiles, but in this case, it made sense (at least to me).

View solution in original post

5 REPLIES 5

AJPinto
Honored Contributor III

If both of these use the same Preference Domain, just copy paste the <dict> ... </dict> from one configuration profile to the other before the </plist> tag.

 

If they use separate Preference Domain, they will need to be separate. Ideally if they use Preference Domain's they need to be separate Configuration Profiles unless both Preference Domains are closely related. For example, you don't want Chrome and Outlook to be together in the same Configuration Profile.

They are both com.jamf.management.jamfAAD.  I am guessing this below, keeping both within the dict?

<?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>useWKWebView</key>
	<true/>
	<key>tokenRetryCount</key>
	<integer>3</integer>
	<key>tokenRetryWaitTime</key>
	<integer>42</integer>
</dict>
</plist>

 

sdagley
Esteemed Contributor II

@DMH2000 Yes, that plist is correct as a combination of the two separate plists in your original post.

DMH2000
Contributor

Thanks all, I know it was a simple question, but wanted to make sure!

DMH2000
Contributor

I tested and found that putting two Plists for the same domain looked better on the computer under Profiles.  I now shows that it has 2 settings.  When I put both settings under one Plist, it showed that it has one setting.  I won't and didn't do that for our other config profiles, but in this case, it made sense (at least to me).