I created a free domain account on www.mygbiz.com. I used this account to create client ID and secret and then followed the process of generating access tokens. The OAuth2 mechanism works perfectly fine for this admin account. However when i add users to this account and add the same users as team members on Admin console (under the team tab): https://code.google.com/apis/console/ , and then use those user accounts in my application, the OAuth2 fails for other accounts and gives the following error:
{"status":"400","schemes":"Bearer","scope":"https://mail.google.com/"}
E.g. admin account: admin@XYZ.mygbiz.com This account has been used to generate client ID and Secret. The code works fine for this account. But for the other users on the same domain: user1: user1@XYZ.mygbiz.com user2: user2@XYZ.mygbiz.com
The code does not work even after adding them as team members on the API console
Am i missing some part of configuration? Can someone please help here?