Luk Aron
Luk Aron

Reputation: 1415

Are there anyway to lock a folder in google drive

I want to prevent everything in the folder from being edit in any way. Only the admin could turn off the lock when needed. Are there programmatic ways ( maybe using API) to achieve this?

Upvotes: 0

Views: 206

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116978

I have done this in the past by simply setting the permissions on the folder, and all files within the folder to read for every user

You can use the Permissions.update method to change the permissions for each user, who currently has access.

You mention admin so i am going to guess you have a Workspace account, i would recommend setting up a service account with delegation access of the admin to be able to monitor this directory.

Upvotes: 2

Related Questions