Skip to main content
Question

Smart group configuration profile

  • Jan 17, 2019 2:06 PM UTC
  • 8 replies
  • 186 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
  • Jan 17, 2019 2:21 PM UTC

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
  • Apr 8, 2021 5:03 PM UTC

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
  • Apr 8, 2021 9:29 PM UTC

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
  • Nov 16, 2021 8:22 PM UTC

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


Forum|alt.badge.img+7
  • Valued Contributor
  • Nov 16, 2021 8:46 PM UTC

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+12
  • Contributor
  • Oct 17, 2023 3:16 PM UTC

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


Forum|alt.badge.img+5
  • Contributor
  • Feb 6, 2024 10:38 PM UTC

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
  • Sep 18, 2024 6:48 PM UTC

@GregE Bless you sir