Posted on 07-08-2019 09:53 AM
Hi!
We're just starting with Jamf and we wanted to set a company webpage as a homepage in Safari. I read a little about it, found code for custom profile and wanted to have a go.
The code I found is this (replaced the site name with facebook):
<?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>HomePage</key>
<string>https://www.facebook.com</string>
<key>NewWindowBehavior</key>
<integer>0</integer>
</dict>
</plist>
When I try to upload it, I get a message "Unable to create object from file". Weird thing is, last week I tried to make a configuration file to enable TeamViewer (the same extension and stuff) and it works perfectly, each time I'd try to do it.
What may be wrong with the file?
Posted on 07-08-2019 10:46 AM
When I get the "Unable to create object from file" error.. it's usually because a profile already in Jamf has the same name or same uuid.
C
Posted on 07-08-2019 11:15 AM
I would try creating a Safari profile using ProfileCreator, and then uploading a custom mobileconfig vs pasting in the plist data under the custom profile payload in Jamf.
Posted on 07-19-2019 05:00 AM
@gachowski How exactly should I cope with this? I've change the name, what about uuid?
Posted on 07-19-2019 05:22 AM
@kjubus Be sure both the UUID and name are different from any other profiles in the jss. We had a conflict recently and tracked it down to a duplicate profile name, even though the uuid was different. I’d always assumed that jamf only used the uuid, but no. Once i changed both items, it uploaded successfully.
Posted on 07-19-2019 11:19 AM
Usually when I edit the profile in Xcode the uuid is there and I just change the last number...but I am starting to think you might not have a uuid...
Did you try with the ProfileCreator? That is what most everyone uses...
C
Posted on 07-22-2019 08:59 AM
Silly question, but did you use defaults to write the plist or did you type it manually and save as a plist?
Can you try the following with any success?
Note: com.domain.plist
should be replaced with com.apple.Safari.plist
(if Safari are the preferences you are trying to manage)
#!/bin/bash
/usr/bin/defaults write ~/Desktop/com.domain.plist HomePage -string https://www.facebook.com
/usr/bin/defaults write ~/Desktop/com.domain.plist NewWindowBehavior -bool FALSE
/usr/bin/plutil -convert xml1 ~/Desktop/com.domain.plist
Posted on 12-06-2019 10:13 AM
I was editing an existing mobileconfig file with ProfileCreator and tried to upload that to replace the older revision of it when I got that error. I was able to resolve my issue by running uuidgen
and replacing the existing UUID with the one that was generated. it uploaded just fine after that.
Posted on 04-16-2021 03:24 PM
I was editing an existing mobileconfig file with ProfileCreator and tried to upload that to replace the older revision of it when I got that error. I was able to resolve my issue by running uuidgen and replacing the existing UUID with the one that was generated. it uploaded just fine after that.
@AVmcclint Did you change the UUID using ProfileCreator? I don't see a way to do it in the application.
Posted on 04-16-2021 03:28 PM
I just ran the uuidgen command in Terminal. It’s been so long since I did it, I don’t know what the actual process is, but I think it just generates a new UUID and you copy/paste that into JSS.
Posted on 01-13-2022 12:20 PM
Just used uuidgen on a crowdstrike config profile that 2 different uuid's in it, and was apparently preventing upload. Worked great.