Is there a way to disable/enable a Server primary site admin account using the Python API? I don't see anything in admin.security, am I looking in the right place?
I hope this can be your answer:
https://developers.arcgis.com/rest/enterprise-administration/server/disablepsa/
This is what I have been using. I was hoping there was a method using the Python API that could replace this workflow.