Google Directory API - 403 [Not Authorized to access this resource/api] on one machine, works on another

google-admin-sdk, google-api-dotnet-client

Solution

Someone had taken my account out of the Admin role. The reason it worked on the other machine was I'd logged in with a different admin account that hadn't been 'house-kept'. The names only differ by one character and I hadn't noticed.

Problem

I've been testing my authorization code and suddenly I started to get: ``` Not Authorized to access this resource/api [403] Errors [ Message[Not Authorized to access this resource/api] Location[ - ] Reason[forbidden] Domain[global] ] ``` I scratched my head and tried a few things but I didn't think I'd changed anything. Eventually I tried running it on a different machine. It worked without error. I'm using v1.6 of the Google Directory API .NET Client. I've been working on this for a while. I had service authorization working and was working on client authorization when I experienced the issue. I'm currently getting the same error when I try authorizing with service creds. I'm not currently in a position to check if that process still works on the other machine. Any ideas? EDIT I'm using the same ClientId on the two machines.

Original source