Skip to main content
Solved

Plist with multiple dict items

  • Jan 16, 2024 7:53 PM UTC
  • 5 replies
  • 89 views

DMH2000
Forum|alt.badge.img+7

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> 

 

Best answer by DMH2000

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 original

5 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • Jan 16, 2024 8:11 PM UTC

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.


DMH2000
Forum|alt.badge.img+7
  • Author
  • Valued Contributor
  • Jan 16, 2024 8:24 PM UTC

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
Forum|alt.badge.img+25
  • Jamf Heroes
  • Jan 17, 2024 3:53 AM UTC

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>

 


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


DMH2000
Forum|alt.badge.img+7
  • Author
  • Valued Contributor
  • Jan 17, 2024 1:48 PM UTC

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


DMH2000
Forum|alt.badge.img+7
  • Author
  • Valued Contributor
  • Answer
  • Jan 19, 2024 1:32 PM UTC

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).