Expected Behavior
clasp login should grant access to the app script API.
Actual Behavior
- That’s an error.
Error: admin_policy_enforced
Access to your account data is restricted by policies within your organization. Please contact administrator for more information.
Request Details
access_type=offline
scope=https://www.googleapis.com/auth/script.deployments https://www.googleapis.com/auth/script.projects
response_type=code
client_id=xxxxxxxxxx-xxxxx.apps.googleusercontent.com
redirect_uri=http://localhost:60194
That’s all we know.
Steps to Reproduce the Problem
I'm trying to use the clasp tool as a G-Suite user, and I have enabled Apps Script API at https://script.google.com/home/usersettings
But the clasp login is giving the above error inside the browser. While our G-Suite Administrator is willing to change the required policies/permissions, he couldn't find any documentation on how to grant the access rights needed for clasp tool or Error logs on what permission was missing.
Can somebody help us figure out what needs to be done to enable the API access to use the clasp tool?
Specifications
- Node version
8.9.1
- Version :
@google/clasp@1.1.5
- OS Windows
Expected Behavior
clasp loginshould grant access to the app script API.Actual Behavior
Steps to Reproduce the Problem
I'm trying to use the clasp tool as a G-Suite user, and I have enabled Apps Script API at https://script.google.com/home/usersettings
But the
clasp loginis giving the above error inside the browser. While our G-Suite Administrator is willing to change the required policies/permissions, he couldn't find any documentation on how to grant the access rights needed for clasp tool or Error logs on what permission was missing.Can somebody help us figure out what needs to be done to enable the API access to use the clasp tool?
Specifications
8.9.1@google/clasp@1.1.5