Skip to main content
Question

Help with Custom Config Profiles : JSON format is incorrect.


Forum|alt.badge.img+2

It seems like every time i try to make Custom Settings for a config profile, no matter how I make the plist file (xCode, VSStudio, manual creation, Jamf Pro spits out : JSON format is incorrect. I'm really confused at what I'm doing wrong.

It will accept an actual JSON format, but then nothing populates in the form editor or Plist preview panes.

What am I doing wrong? How should i go about making custom settings for external apps?

Thanks in advance!

 

Here is a sample from my OneDrive config profile

<?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>AllowTenantList</key> <string>TenantID</string> <key>BlockExternalSync</key> <true/> <key>DisablePersonalSync</key> <true/> <key>DisableTutorial</key> <true/> <key>FilesOnDemandEnabled</key> <true/> </dict> </plist>

 

3 replies

YanW
Forum|alt.badge.img+11
  • Contributor
  • 180 replies
  • May 6, 2024

Forum|alt.badge.img+2
  • Author
  • New Contributor
  • 1 reply
  • May 6, 2024
YanW wrote:

Thank you!

Guess I should reference this instead of trying to build my own.


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • 2716 replies
  • May 6, 2024

Jamfs "error" is pretty useless, it used to tell you exactly what to do.

Either:

  • Your XML code is in fact wrong and needs to be corrected.
  • Your XML is in text format and needs to be converted (usually involving uploading a .plist to Jamf).

 

If you are uploading .mobileconfigs to Jamf for a Payload that Jamf does not have in the GUI, the Jamf Console will only display the general tab and nothing else. You can verify the contents on the Configuration Profile on the device. If you are uploading .mobileconfigs, make sure to sign them so Jamf does not screw with the contents which Jamf loves to do when it does not recognize the Payloads. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings