Skip to main content
Question

Smart group configuration profile

  • January 17, 2019
  • 8 replies
  • 57 views

Forum|alt.badge.img+8

Is it possible to made smart groups when a specific configuration profile is installed

So if I look for a config profile called "Extension" I would like to have a smart group on those computers who have this or not. I can of course create some EA, but doubt how to create this as script

8 replies

Forum|alt.badge.img+10
  • Valued Contributor
  • January 17, 2019

Here is what we are using as an extension attribute to check for our wireless profile.

###########################################################################################################
# EA: WI-FI_PROFILE_NAME Installed?
###########################################################################################################

#!/bin/sh

profileName="WI-FI_PROFILE_NAME"

profiles=`profiles -C -v | grep attribute | awk '/name/{$1=$2=$3=""; print $0}' | grep "$profileName"`
if [[ ! -z "$profiles" ]]; then
  echo "<result>Yes</result>"
else
  echo "<result>No</result>"
fi

exit 0

You can then base the smart group on that.


Forum|alt.badge.img+10
  • Valued Contributor
  • April 8, 2021

Thats pretty sweet.
I wonder why JAMF has not created a smart group criteria based on a profile being true or not.


Forum|alt.badge.img+12
  • Valued Contributor
  • April 8, 2021

What is wrong with using 'Profile Identifier' as criterium for a smart group? It does not even require an EA or an inventory update, the MDM just knows about it.


Forum|alt.badge.img+7
  • Valued Contributor
  • November 16, 2021

Is it possible to query this when it is a user level policy?


Forum|alt.badge.img+7
  • Valued Contributor
  • November 16, 2021

What is wrong with using 'Profile Identifier' as criterium for a smart group? It does not even require an EA or an inventory update, the MDM just knows about it.


Good call.  On a user level profile you can open download/open the config file in an editor and get the Profile Identifier


Forum|alt.badge.img+10
  • Contributor
  • October 17, 2023

sudo profiles -Pv should give you the names and UUID's of the configs installed.


Forum|alt.badge.img+5
  • Contributor
  • February 6, 2024

Just in case anyone else Google's this, you can use the Advanced Criteria to choose "Profile Name".
(Not "Configuration Profile" like you would think it would be called).


Forum|alt.badge.img
  • New Contributor
  • September 18, 2024

@GregE Bless you sir