Having issues uploading a config profile for nudge

rpayne
Contributor II

I'm having an issue uploading a configuration profile for nudge. When I install the profile locally, there are no issues and everything works

Screen Shot 2021-09-16 at 5.11.28 PM.png

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>
1 ACCEPTED SOLUTION

ljcacioppo
Contributor III

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.

View solution in original post

14 REPLIES 14

ljcacioppo
Contributor III

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.

Thank you! I was beating my head against a wall.

@ljcacioppo  Got it working, BUT I can't get changes to the "updateElements" to stick. They keep returning to the defaults.

@rpayne did you set the language to en?

I've seen that if the language isn't set

Once again my friend, you are amazing.

Jacek_ADC
Contributor II

@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 Xnip2021-09-21_14-45-59.png

(I know, its not configured) should be copied to my mac which is scoped for the Config profile.
Xnip2021-09-21_14-47-29.png

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
Xnip2021-09-21_14-51-50.png

The config profile is visible in the profiles section (system preferences) but not visible in the /Library/Preferences

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.

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

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:

Xnip2021-09-21_15-09-25.png

to the /Library/Managed\ Preferences?

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.

Once again, thank you very much.

 

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?

Abhinav_mohan
New Contributor II

Hi there @ljcacioppo  ,
I am trying disable Custom deferral text button to disappear or not exist on Nudge. 

Screen Shot 2022-05-27 at 2.13.17 PM.png

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?

Screen Shot 2022-05-27 at 2.06.55 PM.png

shabeer
New Contributor

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 issueScreenshot 2022-12-26 at 3.46.09 PM.png?