---
title: "Change file permissions from Editor to Viewer"
author: "Phil Bainbridge"
date: 2022-01-05T13:54:44+00:00
modified: 2022-01-05T13:54:49+00:00
canonical_url: https://pulse.appsscript.info/p/2022/01/change-file-permissions-from-editor-to-viewer/
markdown_url: https://pulse.appsscript.info/p/2022/01/change-file-permissions-from-editor-to-viewer.md
categories:
  - "Beginner"
  - "Drive"
  - "Snippet"
tags:
  - "pbainbridge.co.uk"
featured_image: https://pulse.appsscript.info/files/2022/01/Capture.png
description: "The following Google Apps Script is designed to change the Google Drive file permissions of a specific user from Editor to Viewer. The function actually came about when needing to end a process where a user had been editing a Google Sheet on a Shared drive that they should only then have Viewer access to. To complicate matters the Apps Script code is running as said user when it needs to reduce their own permissions."
---

# Change file permissions from Editor to Viewer

![Change file permissions from Editor to Viewer](https://pulse.appsscript.info/files/2022/01/Capture.png)

![Google Drive Access Screen](https://pulse.appsscript.info/files/2022/01/Capture.png)

> How to change Google Drive file permissions from Editor to Viewer as said user.

The following Google Apps Script is designed to change the Google Drive file permissions of a specific user from Editor to Viewer. The function actually came about when needing to end a process where a user had been editing a Google Sheet on a Shared drive that they should only then have Viewer access to. To complicate matters the Apps Script code is running as said user when it needs to reduce their own permissions.

Source: *[The Gift of Script: Change file permissions from Editor to Viewer*](https://www.pbainbridge.co.uk/2021/12/change-file-permissions-from-editor-to.html)

---

*Published by [Phil Bainbridge](https://pulse.appsscript.info/p/author/phillipbainbridge/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2022/01/change-file-permissions-from-editor-to-viewer/](https://pulse.appsscript.info/p/2022/01/change-file-permissions-from-editor-to-viewer/)*
