-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin-sdk Error 400: Bad Request, badRequest #10
Comments
The quickstart uses user (3-legged) OAuth, not service accounts. Have you gotten that to work? When you use the special value |
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:
When I use the
What is |
The value |
Closing due to inactivity. |
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
unfortunately the err doesn't tell you the field you're missing |
Expected Behavior
I'm trying to use this example:
https://developers.google.com/admin-sdk/directory/v1/quickstart/go
I expect to see a list of users names and email addresses from my domain
Actual Behavior
I get an error from this line:
https://github.com/gsuitedevs/go-samples/blob/master/admin_sdk/directory/quickstart.go#L104
I am using
... .Customer("<my-domain>") ...
, there are several users in the org that have email addresses in that domain.Steps to Reproduce the Problem
https://developers.google.com/admin-sdk/directory/v1/guides/delegation
Specifications
The text was updated successfully, but these errors were encountered: