---
title: "Removing Google Drive file access permissions via a Google Apps Script Web App"
author: "Phil Bainbridge"
date: 2022-06-21T20:42:52+00:00
modified: 2022-06-21T20:44:36+00:00
canonical_url: https://pulse.appsscript.info/p/2022/06/remove-file-access-via-a-web-app/
markdown_url: https://pulse.appsscript.info/p/2022/06/remove-file-access-via-a-web-app.md
categories:
  - "Beginner"
  - "Drive"
  - "Snippet"
  - "Solutions"
  - "Web App"
tags:
  - "pbainbridge.co.uk"
featured_image: https://pulse.appsscript.info/files/2022/06/Web-App-remove-access.png
description: "Latest Pulse contribution from Phil Bainbridge: \"The following Google Apps Script is designed to remove a person's edit access from a Google Drive file via a Web App. The reason for using a Web App in this instance is because removing a person's access to a file whilst they are running Apps Script code typically results in an error (or most certainly the inability to cleanly end the code). In the project I was working on prior to this step the code needs to send some automated emails before finishing with removing the person's access.\""
---

# Removing Google Drive file access permissions via a Google Apps Script Web App

![Removing Google Drive file access permissions via a Google Apps Script Web App](https://pulse.appsscript.info/files/2022/06/Web-App-remove-access.png)

> Remove a users edit access to a Google Drive file via an Apps Script Web App.
> [https://www.pbainbridge.co.uk/2022/06/remove-file-access-via-web-app.html#more](https://www.pbainbridge.co.uk/2022/06/remove-file-access-via-web-app.html#more)Web App code sample

The following Google Apps Script is designed to remove a person’s edit access from a Google Drive file via a Web App. The reason for using a Web App in this instance is because removing a person’s access to a file *whilst* they are running Apps Script code typically results in an error (or most certainly the inability to cleanly end the code). In the project I was working on prior to this step the code needs to send some automated emails before finishing with removing the person’s access.

Source: *[The Gift of Script: Remove File Access via a Web App*](https://www.pbainbridge.co.uk/2022/06/remove-file-access-via-web-app.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/06/remove-file-access-via-a-web-app/](https://pulse.appsscript.info/p/2022/06/remove-file-access-via-a-web-app/)*
