Skip to content

OAuth permissions #85

@smandava

Description

@smandava

Expected Behavior

clasp login should grant access to the app script API.

Actual Behavior

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions