Skip to main content
Solved

Help with mobileconfig file. Autoactivation link

  • November 14, 2024
  • 4 replies
  • 28 views

Forum|alt.badge.img+5

The Autoactivationlink is not passing through to the application.  The mobileconfig provided is for Intune, the vendor does not have a Jamf version.  I am also having trouble getting it to pull the USERNAME and DEVICE_NAME from the system, I tried the original palceholders {{Username}} {{Devicename}} and the ones you see now..  I have obscured the link as it is unique to our license.


<?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">
<!-- This profile contains all CIRA DNS Firewall specific settings
For detailed information on these options, please see the MDM specification"
-->
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>ca.cira.secure.remote</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>DisableInstallLocationCheck</key>
<true/>

<key>DisableEULACheck</key>
<true/>

<key>UserInitiatedActivationAllowed</key>
<false/>

<!-- <key>HideMenuBarExtra</key> -->
<!-- <false/> -->

<!-- <key>ShouldUninstall</key> -->
<!-- <false/> -->

<!-- <key>UserDisableAllowed</key> -->
<!-- <true/> -->

<key>AutoActivation</key>
<dict>
<key>AutoActivationLink</key>
<string><![CDATA[https://cira.sxxxxx]]></string>
<key>FirstName</key>
<string>USERNAME</string>
<key>LastName</key>
<string>DEVICE_NAME</string>
</dict>
</dict>
</dict>
</array>
</dict>
</dict>
<key>PayloadIdentifier</key>
<string>ca.cira.secure.remote.Client_Settings.mobileconfig</string>
<key>PayloadType</key>
<string>com.apple.ManagedClient.preferences</string>
<key>PayloadUUID</key>
<string>26a292a4-eaff-4670-a5b5-0fe6ab42d0a3</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Included custom settings:
ca.cira.secure.remote
</string>
<key>PayloadDisplayName</key>
<string>MCXToProfile: ca.cira.secure.remote</string>
<key>PayloadIdentifier</key>
<string>CIRA DNS Firewall Client Settings</string>
<key>PayloadOrganization</key>
<string>Cira</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>e67e6e59-ef49-463c-8656-ae6113304238</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>

Best answer by Shyamsundar

this is the variable you need to use in your plist for getting the username and device

$USERNAME

$COMPUTERNAME

 

string><![CDATA[https://cira.sxxxxx]]></string> <key>FirstName</key> <string>$USERNAME</string> <key>LastName</key> <string>$COMPUTERNAME</string>

Please refer this for more information 

4 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • 2802 replies
  • November 15, 2024

What application is this for? Also share this using code blocks so we can make sure the formatting is correct. In theory if the vendor provides a .mobileconfig you can just sign it and upload it to jamf without having to do anything else.


Shyamsundar
Forum|alt.badge.img+13
  • Jamf Heroes
  • 305 replies
  • Answer
  • November 15, 2024

this is the variable you need to use in your plist for getting the username and device

$USERNAME

$COMPUTERNAME

 

string><![CDATA[https://cira.sxxxxx]]></string> <key>FirstName</key> <string>$USERNAME</string> <key>LastName</key> <string>$COMPUTERNAME</string>

Please refer this for more information 


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • 3 replies
  • November 15, 2024

@Shyamsundar That got things closer, thank you.  The $USERNAME came back blank, $COMPUTERNAME worked.

@AJPinto Apologies, here is the code in Codeblocks.  The app is CIRA DNS Firewall.

<?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"> <!-- This profile contains all CIRA DNS Firewall specific settings For detailed information on these options, please see the MDM specification" --> <plist version="1.0"> <dict> <key>PayloadContent</key> <array> <dict> <key>PayloadContent</key> <dict> <key>ca.cira.secure.remote</key> <dict> <key>Forced</key> <array> <dict> <key>mcx_preference_settings</key> <dict> <key>DisableInstallLocationCheck</key> <true/> <key>DisableEULACheck</key> <true/> <key>UserInitiatedActivationAllowed</key> <false/> <!-- <key>HideMenuBarExtra</key> --> <!-- <false/> --> <!-- <key>ShouldUninstall</key> --> <!-- <false/> --> <!-- <key>UserDisableAllowed</key> --> <!-- <true/> --> <key>AutoActivation</key> <dict> <key>AutoActivationLink</key> <string><![CDATA[https://cira.sxxxx]]></string> <key>FirstName</key> <string>$USERNAME</string> <key>LastName</key> <string>$COMPUTERNAME</string> </dict> </dict> </dict> </array> </dict> </dict> <key>PayloadIdentifier</key> <string>ca.cira.secure.remote.Client_Settings.mobileconfig</string> <key>PayloadType</key> <string>com.apple.ManagedClient.preferences</string> <key>PayloadUUID</key> <string>26a292a4-eaff-4670-a5b5-0fe6ab42d0a3</string> <key>PayloadVersion</key> <integer>1</integer> </dict> </array> <key>PayloadDescription</key> <string>Included custom settings: ca.cira.secure.remote </string> <key>PayloadDisplayName</key> <string>MCXToProfile: ca.cira.secure.remote</string> <key>PayloadIdentifier</key> <string>CIRA DNS Firewall Client Settings</string> <key>PayloadOrganization</key> <string>Cira</string> <key>PayloadRemovalDisallowed</key> <true/> <key>PayloadScope</key> <string>System</string> <key>PayloadType</key> <string>Configuration</string> <key>PayloadUUID</key> <string>e67e6e59-ef49-463c-8656-ae6113304238</string> <key>PayloadVersion</key> <integer>1</integer> </dict> </plist>

 


Shyamsundar
Forum|alt.badge.img+13
  • Jamf Heroes
  • 305 replies
  • November 15, 2024

if the Username is associated with the computer in Jamf Pro than it won't be empty.