Comments (5)
for future folks who may see this, i hit this when querying the directory API trying list users. however the list users api requires a domain string be set
- verify this by trying the api
unfortunately the err doesn't tell you the field you're missing
from go-samples.
The quickstart uses user (3-legged) OAuth, not service accounts. Have you gotten that to work? When you use the special value "my_customer"
for the customer ID, does that work?
from go-samples.
Thanks! I also get the same error when I used OAuth. When I paste the code from the web browser back in the terminal, I see this:
Saving credential file to: token.json
2018/09/19 13:25:29 Unable to retrieve users in domain: googleapi: Error 400: Bad Request, badRequest
When I use the "my_customer"
value it says this:
Unable to retrieve users in domain: googleapi: Error 404: Domain not found., notFound
What is my_customer
? I've read a good bit of the documentation and don't really understand how customers come into this.
from go-samples.
The value my_customer
is a shortcut for referring to the G Suite organization you are a part of. Is the authorized user part of a G Suite domain, or is it a gmail.com account?
from go-samples.
Closing due to inactivity.
from go-samples.
Related Issues (20)
- Golang Gmail Api HOT 4
- Logger Error and how to fix it
- Credentials problem HOT 2
- Error 500: Requested Resource Too Large to Return, responseTooLarge
- token expired and refresh token is not set HOT 1
- Unable to parse client secret file to config: oauth2/google: missing redirect URL in the client_credentials.json exit status 1 HOT 2
- Specify sheet in spreadsheets HOT 1
- Getting Unauthorized HOT 1
- sheets.New() is depricated HOT 1
- don't get token
- Unable to view or download the file uploaded using File.get(File id)
- Feature Request: Manage Group members snippets HOT 1
- "No required module provides package" errors
- Dependency Dashboard
- gmail quickstart.go will not retrieve a token HOT 9
- [SyncRepoSettings bot] - Invalid config file
- Add Calendar Snippets
- Quickstart needs OOB update HOT 1
- Googlesheets Quickstart example unreachable in localhost HOT 3
- Error Malformed auth code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-samples.