Posted on 04-04-2024 09:47 AM
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!
Solved! Go to Solution.
Posted on 04-04-2024 09:58 AM
looks like your $4 needs to be $3
Posted on 04-04-2024 09:58 AM
looks like your $4 needs to be $3
Posted on 04-04-2024 10:52 AM
Success! This resolved my issued and thank you SO very much!!
Posted on 04-04-2024 01:38 PM
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.
Posted on 04-04-2024 01:46 PM
Thank you for this additional suggestion!