Skip to main content
Solved

TouchID Status Not Working with macOS Sonoma

  • April 4, 2024
  • 6 replies
  • 47 views

Forum|alt.badge.img+3

Ever since we upgraded to macOS Sonoma, the following script is no longer working that is used as an Extension Attribute within Jamf Pro to report if TouchID is Enabled and Disabled:

#!/bin/sh

TouchIDStatus=`bioutil -rs | grep functionality | awk '{print $4}'`
if [[ "$TouchIDStatus" = "0" ]]; then
result="TouchIDDisabled"
elif [[ "$TouchIDStatus" = "1" ]]; then
result="TouchIDEnabled"
else
result="Error"
fi
echo "<result>$result</result>"

What I see for TouchID is Error.

Any advice is very much appreciated!

Best answer by jamf-42

looks like your $4 needs to be $3 

6 replies

jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • Answer
  • April 4, 2024

looks like your $4 needs to be $3 


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • April 4, 2024

looks like your $4 needs to be $3 


Success! This resolved my issued and thank you SO very much!!


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • April 4, 2024

looks like your $4 needs to be $3 


Not to quibble but using $NF instead of $4 would work better since it grabs the last field and will work in macOS Ventura or Sonoma.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • April 4, 2024

Not to quibble but using $NF instead of $4 would work better since it grabs the last field and will work in macOS Ventura or Sonoma.


Thank you for this additional suggestion!


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • May 23, 2024

So, just been looking for something, but this one in Sonoma anyways, doesn't seem to work.

I get "TouchIDEnabled" even though it's off.

Rebooted and ran two more recons, same result.

Anyone reporting otherwise?  I double-checked TouchID setup on my test Mac and it's definitely off.


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • May 23, 2024

So, just been looking for something, but this one in Sonoma anyways, doesn't seem to work.

I get "TouchIDEnabled" even though it's off.

Rebooted and ran two more recons, same result.

Anyone reporting otherwise?  I double-checked TouchID setup on my test Mac and it's definitely off.


OK, was helped on MacAdmins, and got this nifty piece.

Works well, if you're looking to see if Touch ID has been actually setup.

Kudos to @franton for the code 🙏

#!/bin/zsh touchIDstatus=$( /usr/bin/bioutil -s -c | /usr/bin/awk 'NR==1{ print }' | /usr/bin/tr -d '\\t' ) if [[ "$touchIDstatus" == *"no fingerprints"* ]]; then echo "<result>Not configured</result>" else echo "<result>$touchIDstatus</result>" fi