Skip to content
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

Required scopes for data resource googleworkspace_user #134

Closed
dwilliams782 opened this issue Aug 10, 2021 · 3 comments
Closed

Required scopes for data resource googleworkspace_user #134

dwilliams782 opened this issue Aug 10, 2021 · 3 comments
Assignees
Labels
question Further information is requested waiting-response Waiting for a response

Comments

@dwilliams782
Copy link

dwilliams782 commented Aug 10, 2021

Hi, what scopes are required for the data resource googleworkspace_user? I've tried:

oauth_scopes = [
    "https://www.googleapis.com/auth/admin.directory.group",
    "https://www.googleapis.com/auth/admin.directory.user",
    "https://www.googleapis.com/auth/admin.directory.userschema.readonly",
    "https://www.googleapis.com/auth/apps.groups.settings"
  ]

but still get an insufficient scopes error. Thanks!

@vhatsura
Copy link

@dwilliams782, you need to ask for https://www.googleapis.com/auth/admin.directory.user.readonly scope

@megan07
Copy link
Contributor

megan07 commented Aug 11, 2021

Hi @dwilliams782!
Can I see what else you might have in your config? With only googleworkspace_user in mine, it works with "https://www.googleapis.com/auth/admin.directory.user" only. You'll need "https://www.googleapis.com/auth/admin.directory.userschema" if you're defining a googleworkspace_schema as well.

@megan07 megan07 self-assigned this Aug 11, 2021
@megan07 megan07 added question Further information is requested waiting-response Waiting for a response labels Aug 11, 2021
@megan07
Copy link
Contributor

megan07 commented Aug 18, 2021

Hi @dwilliams782! I wanted to check in and see if this worked and we can close the issue? Thanks!

@megan07 megan07 closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested waiting-response Waiting for a response
Projects
None yet
Development

No branches or pull requests

3 participants