Skip to content

ochtum/GoogleDriveAddPermission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoogleDriveAddPermission

Sample source for GoogleDrive access rights batch grant script.

1.Setup Procedure for Development Environment

(1) Install Node.js

Node.js website

(2) Execute the following command in PowerShell to install Clasp.

npm install @google/clasp -g

(3) Execute the following command in PowerShell to install npm.

npm install -g npm@latest

(4) In the folder containing .clasp.json, execute the command to log in to Clasp.

clasp login

2.The following settings are required before execution

(1) Enable Google Drive API in GCP

(2) Create authentication credentials in GCP (API Key, OAuth 2.0 Client ID, Service Account)

(3) Modify the values in the Source Code

  • .clasp.json
    YOUR_SCRIPT_ID
    YOUR_ROOT_DIRECTORY
  • index.js
    [email protected]
    YOUR_PRIVATE_KEY
    YOUR_CLIENT_EMAIL
    YOUR_API_KEY

3.Deployment Method

Verify the settings in .clasp.json and adjust the [rootDir] setting to match the local path where the source code is located.

Execute the following command

clasp push

About

Sample source for GoogleDrive access rights batch grant script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published