Search code examples
oauth-2.0google-apipostmangoogle-oauthscopes

How to set multiple Oauth2 scopes in Postman


I'm trying to retrieve a course work for a course using the Google Classroom API. For this it's required multiple scopes. I can get this working from Java so I believe the list of scopes is correct. However, when trying from Postman, I get a 403 "Request had insufficient authentication scopes." error, which makes me think perhaps the way I'm adding the scopes together may not be correct. I've already tried using "+", ",", ";" and also spaces but none of them got rid of the error. Any ideas about what I may be missing please?

enter image description here

Thank you.

Update

Showing the Postman console which seems to identify only one scope for the request.

![enter image description here


Solution

  • Perhaps you changed the scopes and forgot to request a new access token and click the use token button or are running on an old access token prior to requesting additional scopes?

    just tested this using both Google analytics scopes.

    enter image description here

    as you can see the response gives me an access token containing both scopes that i requested.

    enter image description here