macOS Scripting work that might help you out.
#Credit where credit is due Thanks to Allen Golbig for his initial work on a zsh script. I took his base work and updated it for a bash shell script that can be run in JAMF Self Service
https://github.com/golbiga/macOS_Smartcard/blob/master/Scripts/local_attrmap.zsh