Skip to main content
Solved

How to check via Terminal if MDM profile is unverified?

  • April 10, 2019
  • 5 replies
  • 35 views

Forum|alt.badge.img+3

Hi All,

I'm thinking of creating a bash script that will verify all unverified MDM profiles via a policy in Jamf but the script will need to check first if the profile is unverified or not.

Is there a bash command that will check if an MDM profile is unverified?

the profiles command doesn't seem to have anything that will show that the profile is unverified.

Thanks in advance.

Best answer by JustDeWon

@duwayne , I would suggest creating an extension attribute from This and making a Smart Group based on the results, then having a policy scoped to that Smart Group to do what you need.

5 replies

Forum|alt.badge.img+11
  • Contributor
  • Answer
  • April 10, 2019

@duwayne , I would suggest creating an extension attribute from This and making a Smart Group based on the results, then having a policy scoped to that Smart Group to do what you need.


PaulHazelden
Forum|alt.badge.img+12
  • Jamf Heroes
  • April 10, 2019

User approved MDM is available as a criteria for a Smart group, it will either be Yes or No. It's how I find all of mine here.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • April 10, 2019

@JustDeWon Thank you! I'll check this out and have it a try.

@PaulHazelden So what you're saying is that if the MDM enrollment is not approved, it means that it's unverified?


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • April 10, 2019

@JustDeWon Thank you for your suggestion. This is exactly what I was looking for.


Forum|alt.badge.img+11
  • Contributor
  • April 10, 2019

@duwayne , to answer your question to @PaulHazelden .. It's possible to have an Unverified User Approved MDM profile. So that Smart Group wouldn't do what you were looking for.

Glad that script was able to help.