Like my Learned Colleague above has mentioned - never see that happen Password issue
I do know
id -Gn username | grep -q -w admin && echo True || echo False
If the $USER is admin then True will result.
Credit to @VikingOSX
But what is troublesome would be IF the User has Purposefully enable the SuperUser " Root User" on this computer
Or to reset the computer password
Reset Computer Password for the Administrator Account Password
Intel Computer
1 - Shutdown the computer
1A - Restart computer and immediately hold the two keyboard combo Command r
1B - If using a Bluetooth Keyboard with Rechargeable Battery - Cable the Keyboard to computer for this unique purpose. Bluetooth Kernel may not load soon enough to execute the 2 keyboard commands
2 - Top Tool Bar >> Utilities >> Terminal
3 - Type resetpassword as one word and no spaces
4 - Press Return key
5 - Follow the prompts and remember the New Password
Apple Silicon M1 / M2 Computer
1 - Choose Apple menu > > Shut Down.
2- Do not attempt a Restart to access this feature. The computer Must be Shutdown and pause for about 10 seconds before moving forwards
3 - Press and hold the power button on your Mac until you see “Loading startup options.”
4 - Click Options, then click Continue.
5 - Top Tool Bar >> Utilities >> Terminal
6 - Type resetpassword as one word and no spaces
7 - Press Return key
8 - Follow the prompts and remember the New Password