I been looking at the documentation for enterprise admin endpoint:
and here: enterprise-admin
It sounds like I should be able to get the site_admin scope when trying to get an access token with an OAuth app, but I can’t seem to get it to work.
Here is an example of what I think should work:
(I also tried it with the ‘:’ as shown on the second link)
The Authorization screen does not ask me to confirm the scope, and upon retrieving my access token it doesn’t report the site_admin scope. I have got other scopes working, and I have been able to access the enterprise endpoint with a Personal Access Token.
If anyone knows how to do this it would be much appreciated.