MAC - Authentication is Disabled error

Topic

Authentication is Disabled error

Environment

MAC

Instructions

When attempting to sign in to mac with credentials if given the error “Authentication is disabled” (In our case a user granted with administrator was attempting make a change requiring administrator access) The solution for this problem is to run these commands within the kernal
`
#checks to see if secure token is enabled or disabled
#Disables and then reenables the securetoken

sysadminctl -secureTokenStatus <username> 

sysadminctl -secureTokenOff <username> – password – -adminUser <adminusername -adminPassword –

sysadminctl -secureTokenOn <username> – password – -adminUser <adminusername -adminPassword –

diskutil apfs UpdatePreboot /

#after running do a reboot
`

Hopefully after running this in terminal you should no longer get this error when attempting to change something with admin needs