Lock files via the Google Drive API to prevent content edits

What’s changing
You can now add and remove content restrictions via the Drive API. By using the new ContentRestriction API, any file type in Drive can be “locked,” preventing changes to the item’s content, title, and comments.
Content restrictions can be added or removed via the API and removed via Google Drive on the web by any user who has at least editor access level for the item.
Learn more about the new API functions in this Drive ContentRestriction (Locking) API documentation.
Who’s impacted
Admins, end users, and developers
Why you’d use it
While Google Drive’s collaborative editing and commenting features are often helpful and beneficial, sometimes it’s important to know that changes are not being made to a document. Locking a file with the ContentRestriction API can help accomplish this, and could be used to:
- Lock authoritative versions of documents to create “official” or “final” documents for record keeping.
- Prevent changes to documents that are involved in a workflow, automation, or business process.
- Freezing activity on a document for a period of reviews or audits.
Getting started
- Admins and developers: Admins and developers with editor content access level and up and can use the API. See the Google Drive API documentation and our getting started guide (with examples) to learn more.
- End users: End users with editor content access level and up and can use the API. See the Google Drive API documentation and our getting started guide (with examples) to learn more.
Rollout pace
- This feature is available now for all users.
Availability
- Available to all customers
Resources
Roadmap
- This feature was listed as an upcoming release.
Related Google News:
- Scaling deep retrieval with TensorFlow Recommenders and Vertex AI Matching Engine May 1, 2023
- Unleash your Google Cloud data with ThoughtSpot, Looker, and BigQuery May 1, 2023
- Track, Trace and Triumph: How Utah Division of Wildlife Resources is harnessing Google Cloud to… May 1, 2023
- Seeing the World: Vertex AI Vision Developer Toolkit May 1, 2023
- BBC: Keeping up with a busy news day with an end-to-end serverless architecture May 1, 2023
- Scalable electronic trading on Google Cloud: A business case with BidFX May 1, 2023
- Google Cloud and Equinix: Building Excellence in ML Operations (MLOps) May 1, 2023
- Google Docs can make a table of contents for you — here’s how May 1, 2023
October 8, 2020
Apps / Google
This website is not part of the Google website or Google LLC. Additionally, this site is not endorsed by Google in any way. Google is a trademark of Google LLC.