Search code examples
google-apigoogle-oauthoauth-2.0

See authorized scopes with a google access token


Is It possible to determine the list of scopes that have been authorized (e.g, "https://www.googleapis.com/auth/drive"), given an access token?

I couldn't find any such endpoint in the documentation, but I'd be surprised if such functionality did not exist.

Thank you!


Solution

  • You can use the OAuth 2.0 API for this. Try tokeninfo in the API Explorer.