Search code examples
google-apps-scriptweb-applications

Can I get access rights back from users?


I am considering to create an app for the first time and I am not sure I understand google‘s terms and conditions well. According to what I read, if I give access to some users, I will not be able to get it back and besides, google will get the right to distribute it further. Is this right?


Solution

  • Creating a WebApp with limited access

    When you deploy a WebApp you can choose how to execute the WebApp and who has access to it:

    enter image description here

    You execute either as

    • You
    • The user accessing the App

    And the App can be accessed by either

    • Only you
    • Anyone in your domain
    • Anyone

    You are not able to select only specific users to have access.

    • However, obviously only the users with whom you will share the WebApp URL will have access to it.

    • Also, you can use within the WebApp the method getActiveUser() to retrieve the identity of the user and implement a conditional statement that runs the rest of the script only if the active user is one of the "allowed" ones.

    • Very important: After deploying the WebApp for the first time, you can deploy it as a new version as often as desired and change thereby the execution and access permissions which makes it easy to revoke access