Posted on 03-17-2025 04:59 PM
Does anyone have an extension attribute that will return the version of Jamf Connect a Mac is running?
Our 'Patch Management' tells me we've got various out-dated versions floating around in our environment and I want to gather all of these into an Advanced Search or Policy so I can take action.
Solved! Go to Solution.
Posted on 03-17-2025 05:15 PM
You can use "Patch Reporting" smart group criteria to do this without the need for an extra EA
Posted on 03-18-2025 02:26 AM
You can use this solution for an extension attribute:
#!/bin/bash
##############################################################################
# A script to collect the version of Jamf Connect Login installed. #
# If Jamf Connect Login is not installed "Not Installed" will return back #
##############################################################################
NOT_INSTALLED="Not Installed"
RESULT=""
if [ -a /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist ]
then
RESULT=$( /usr/bin/defaults read /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist CFBundleShortVersionString )
else
RESULT="$NOT_INSTALLED"
fi
/bin/echo "<result>$RESULT</result>"
Posted on 03-17-2025 05:15 PM
You can use "Patch Reporting" smart group criteria to do this without the need for an extra EA
Posted on 03-17-2025 05:48 PM
Awesome Shannon, I had no idea that existed. That's going to make life a lot easier! Many thanks!
Posted on 03-18-2025 02:26 AM
You can use this solution for an extension attribute:
#!/bin/bash
##############################################################################
# A script to collect the version of Jamf Connect Login installed. #
# If Jamf Connect Login is not installed "Not Installed" will return back #
##############################################################################
NOT_INSTALLED="Not Installed"
RESULT=""
if [ -a /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist ]
then
RESULT=$( /usr/bin/defaults read /Library/Security/SecurityAgentPlugins/JamfConnectLogin.bundle/Contents/Info.plist CFBundleShortVersionString )
else
RESULT="$NOT_INSTALLED"
fi
/bin/echo "<result>$RESULT</result>"
Posted on 03-18-2025 05:04 PM
Thank you, this is awesome! Now I can have the Jamf Connect version display when producing reports! Much appreciated.