Google Apps Script project (more about this here)
- Create script at script.new
- Menu Publish -> deploy as a web app
- Here you choose performed by me, user, etc. Accessed by ...
- Is it possible to make it work with a service account as its owner? (so that it survives when you terminate the user's accounts later)