Hey Krishan,
Sorry for the delay. I don't know if anyone else reached out, but be careful of choosing too many scopes - I know from experience that some scopes that are more restrictive may overwrite the more broad scopes. For instance, if you look at the details for the
https://www.googleapis.com/auth/gmail.settings.basic scope, it says:
Manage basic mail settings.
This means that if you have chosen this scope, you may find that the more broad scope of
https://www.googleapis.com/auth/gmail.settings.sharing is not working as expected. You'd have to play around to figure out exactly which scopes you need, but I suspect you could try using the
https://mail.google.com/ scope for full access, see if it works with that and then work down from there to see if it is indeed a scope issue.
You can find more scope information for the Gmail APIs
here.
Also, I found in my own personal use that the
https://mail.google.com/ scope does not actually give you access to
everything - I also had to include these for my purposes, though I forget the details and the use case:
Regards,