Hi, you can use the following API GET call
https://<controller url>/controller/restui/user/account
Check out all of AppDs APIs here: https://docs.appdynamics.com/appd/23.x/latest/en/extend-appdynamics/appdynamics-apis
Please follow up if you find an API that answers your question. Knowledge sharing is what makes this place helpful.