09-16-2021 04:17 PM - edited 09-16-2021 04:23 PM
I'm having an issue uploading a configuration profile for nudge. When I install the profile locally, there are no issues and everything works
This is the content. Not sure What I'm doing wrong here.
<?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>PayloadDescription</key>
<string>Configures all Nudge preferences</string>
<key>PayloadDisplayName</key>
<string>Nudge Preferences</string>
<key>PayloadIdentifier</key>
<string>com.github.macadmins.Nudge.preferences.example</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadType</key>
<string>com.github.macadmins.Nudge</string>
<key>PayloadUUID</key>
<string>CA02957C-7472-446B-9F77-3E0414405556</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>optionalFeatures</key>
<dict>
<key>acceptableApplicationBundleIDs</key>
<array>
<string>us.zoom.xos</string>
</array>
<key>aggressiveUserExperience</key>
<true/>
<key>asyncronousSoftwareUpdate</key>
<true/>
<key>attemptToFetchMajorUpgrade</key>
<true/>
<key>enforceMinorUpdates</key>
<true/>
</dict>
<key>osVersionRequirements</key>
<array>
<dict>
<key>aboutUpdateURLs</key>
<array>
<dict>
<key>_language</key>
<string>en</string>
<key>aboutUpdateURL</key>
<string>https://support.apple.com/en-us/HT211896#macos1121</string>
</dict>
<dict>
<key>_language</key>
<string>es</string>
<key>aboutUpdateURL</key>
<string>https://support.apple.com/es-es/HT211896</string>
</dict>
<dict>
<key>_language</key>
<string>fr</string>
<key>aboutUpdateURL</key>
<string>https://support.apple.com/fr-fr/HT211896</string>
</dict>
<dict>
<key>_language</key>
<string>de</string>
<key>aboutUpdateURL</key>
<string>https://support.apple.com/de-de/HT211896</string>
</dict>
</array>
<key>majorUpgradeAppPath</key>
<string>/Applications/Install macOS Big Sur.app</string>
<key>requiredInstallationDate</key>
<date>2021-09-16T00:00:00Z</date>
<key>requiredMinimumOSVersion</key>
<string>11.6</string>
<key>targetedOSVersionsRule</key>
<string>default</string>
</dict>
</array>
<key>userExperience</key>
<dict>
<key>allowUserQuitDeferrals</key>
<true/>
<key>allowedDeferrals</key>
<integer>1000000</integer>
<key>allowedDeferralsUntilForcedSecondaryQuitButton</key>
<integer>14</integer>
<key>approachingRefreshCycle</key>
<integer>6000</integer>
<key>approachingWindowTime</key>
<integer>72</integer>
<key>elapsedRefreshCycle</key>
<integer>300</integer>
<key>imminentRefreshCycle</key>
<integer>600</integer>
<key>imminentWindowTime</key>
<integer>24</integer>
<key>initialRefreshCycle</key>
<integer>18000</integer>
<key>maxRandomDelayInSeconds</key>
<integer>1200</integer>
<key>noTimers</key>
<false/>
<key>nudgeRefreshCycle</key>
<integer>60</integer>
<key>randomDelay</key>
<false/>
</dict>
<key>userInterface</key>
<dict>
<key>fallbackLanguage</key>
<string>en</string>
<key>forceFallbackLanguage</key>
<false/>
<key>forceScreenShotIcon</key>
<false/>
<key>iconDarkPath</key>
<string>/Library/hidden/dark.png</string>
<key>iconLightPath</key>
<string>/Library/hidden/light.png</string>
<key>screenShotDarkPath</key>
<string>/somewhere/screenShotDark.png</string>
<key>screenShotLightPath</key>
<string>/somewhere/screenShotLight.png</string>
<key>showDeferralCount</key>
<true/>
<key>simpleMode</key>
<false/>
<key>singleQuitButton</key>
<false/>
<key>updateElements</key>
<array>
<dict>
<key>_language</key>
<string>en</string>
<key>actionButtonText</key>
<string>Update Device</string>
<key>customDeferralButtonText</key>
<string>Custom</string>
<key>informationButtonText</key>
<string>More Info</string>
<key>mainContentHeader</key>
<string>User Action Required</string>
<key>mainContentNote</key>
<string>Important Notes</string>
<key>mainContentSubHeader</key>
<string>Updates can take 30 to 45 minutes to complete</string>
<key>mainContentText</key>
<string>A fully up-to-date device is required to ensure that hidden can accurately protect your device.
If you do not update your device, you may lose access to some items necessary for your day-to-day tasks.
To begin the update, simply click on the Update Device button and follow the provided steps.</string>
<key>mainHeader</key>
<string>Your device requires a security update</string>
<key>oneDayDeferralButtonText</key>
<string>One Day</string>
<key>oneHourDeferralButtonText</key>
<string>One Hour</string>
<key>primaryQuitButtonText</key>
<string>Later</string>
<key>secondaryQuitButtonText</key>
<string>I understand</string>
<key>subHeader</key>
<string>A friendly notification from hidden</string>
</dict>
</array>
</dict>
</dict>
</array>
<key>PayloadDescription</key>
<string>Configures Nudge application</string>
<key>PayloadDisplayName</key>
<string>Nudge</string>
<key>PayloadIdentifier</key>
<string>com.github.macadmins.Nudge.example</string>
<key>PayloadOrganization</key>
<string>Nudge</string>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>2F54F734-132D-4539-B583-F1DCF23DB5EB</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
Solved! Go to Solution.
Posted on 09-17-2021 07:27 AM
Personally, I use the json schema instead: https://github.com/macadmins/nudge/blob/main/Schema/jamf/com.github.macadmins.Nudge.json
You can create a config profile in JAMF Pro, then under the Application and Custom Settings payload, choose external application, then custom schema, and paste in that json - it will become a point and click interface where you can choose the settings for all of these settings, and then if you ever need to modify, you just change it in the JAMF Pro web interface.
Posted on 09-17-2021 07:27 AM
Personally, I use the json schema instead: https://github.com/macadmins/nudge/blob/main/Schema/jamf/com.github.macadmins.Nudge.json
You can create a config profile in JAMF Pro, then under the Application and Custom Settings payload, choose external application, then custom schema, and paste in that json - it will become a point and click interface where you can choose the settings for all of these settings, and then if you ever need to modify, you just change it in the JAMF Pro web interface.
09-17-2021 08:34 AM - edited 09-17-2021 08:34 AM
Thank you! I was beating my head against a wall.
Posted on 09-17-2021 09:27 AM
@ljcacioppo Got it working, BUT I can't get changes to the "updateElements" to stick. They keep returning to the defaults.
Posted on 09-17-2021 09:54 AM
@rpayne did you set the language to en?
I've seen that if the language isn't set
Posted on 09-17-2021 11:06 AM
Once again my friend, you are amazing.
09-21-2021 05:48 AM - edited 09-21-2021 05:53 AM
@ljcacioppofor my understanding after a few hours testing 🙂
How I understood the nudge guide from github GitHub - macadmins/nudge
the created com.github.macadmins.Nudge.json with jamf PRO how you described above and I tried, should be visible in the /Library/Preferences/ of my mac for working properly.
Creating the Configuration Profile in jamf as json in
(I know, its not configured) should be copied to my mac which is scoped for the Config profile.
The com.github.macadmins.Nudge.json is not in the /Library/Preferences except I copy it manually to that path.
The Macbook is scoped correctly and the config profile is in the management tab of this macbook
The config profile is visible in the profiles section (system preferences) but not visible in the /Library/Preferences
Posted on 09-21-2021 05:53 AM
I would not expect any preferences for nudge managed by a configuration profile to show up in /Library/Preferences.
If you are deploying settings via an MDM configuration profile, typically those preferences are stored in /Library/Managed\ Preferences
Also, not sure if its just the screenshot, but I don't really see anything set in the profile in your screenshot. Everything there seems unconfigured.
Posted on 09-21-2021 06:05 AM
@ljcacioppothank you for your fast reply !! 🙂
Its correct, nothing is configured in the json. For the moment it is only the json from https://github.com/macadmins/nudge/blob/main/Schema/jamf/com.github.macadmins.Nudge.json
I try to understand how this works and am not able to do it 🙂
I cant also find any json in your suggested path /Library/Managed\ Preferences except the other profiles I configured thru the MDM profiles.
I invested the whole morning to try running the nudge with settings and without settings.
So what is the recommended way to configure the nudge without some external -json-url.
I like the idea, to have my config file somewhere stored on my macbooks.
Posted on 09-21-2021 06:10 AM
hmmm, just changed some settings in the json and "voila" the json file appears as plist in the managed preferences. **bleep**..... hehe
But, have i to change now somewhere the path from:
to the /Library/Managed\ Preferences?
Posted on 09-21-2021 06:26 AM
Those instructions are referring to if you do not set the Nudge settings via a configuration profile, it will look in /Library/Preferences for a json file. If you are using the json schema for a configuration profile, you only need to set whatever preferences in that configuration profile and nowhere else.
Posted on 09-21-2021 06:27 AM
Once again, thank you very much.
Posted on 11-17-2021 03:12 PM
I created a configuration profile and it puts a plist file in /Library/Managed Preferences/
I cannot get Nudge to open unless I put a json file in /Library/Preferences/
How do I get it to understand the plist file generated by configuration profile?
05-27-2022 11:15 AM - edited 05-27-2022 11:15 AM
Hi there @ljcacioppo ,
I am trying disable Custom deferral text button to disappear or not exist on Nudge.
In the user interface option i have created this parameter ( screenshot below) , but doesn't seem to affect nudge when it loads ( attaching the screenshot) . Any advices on how to remove this parameter?
Posted on 12-26-2022 02:47 AM
In the userInterface -> updateElements option i have created this parameter , but doesn't seem to affect nudge when it loads ( attaching the screenshot) . Any advices to resolve this issue?