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

Can't authorize clasp (login) #1030

Open
TeacherMN opened this issue Mar 5, 2025 · 4 comments
Open

Can't authorize clasp (login) #1030

TeacherMN opened this issue Mar 5, 2025 · 4 comments

Comments

@TeacherMN
Copy link

Hello. I've been trying to login to clasp as a Google Workspace user, but it always tells me that the admin hasn't allowed the service. However, I'm the admin of Google Workspace for my organization and I've made sure to allow the clasp app/service in the console. I'm at a loss as to what to do next, so any pointers would be welcome. Thank you.

The clasp IDs I have allowed are these two:
1072944905499-6jmucestgjua6htt8e2fdtvp90n5v12q.apps.googleusercontent.com
1072944905499-vm2v2i5dvn0a0d2o4ca36i1vge8cvbn0.apps.googleusercontent.com

These apps are allowed for the whole organization, not just some organizational units. I'm also trying to access the service with the superuser (admin) account from Google Workspace.

@tdobson
Copy link

tdobson commented Mar 5, 2025

Go here: https://script.google.com/home/usersettings

Enable the api there,
try again

Good luck!

@TeacherMN
Copy link
Author

Thank you for your answer. I tried your solution, but it still says that the app is not authorised (despite the fact that it is...)

@tdobson
Copy link

tdobson commented Mar 7, 2025

Did you have to enable it or was it already enabled?

What do you see if you do
clasp login? Can you share screenshots etc?

@jppme
Copy link

jppme commented Mar 7, 2025

@TeacherMN When the system ask for your authorization look at all the permissions; you need to check them all because the authorization (now) is granular.
https://workspaceupdates.googleblog.com/2025/01/granular-oauth-consent-in-google-apps-script.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants