Reputation: 31
I have an application Google apps script and i have more than 3 users in this application i want to create an interface for authentication for this application, and according to any user i will open the interface Appropriate to every user. Some can Help me with an article or with some code please.Thank you.
Upvotes: 1
Views: 589
Reputation: 1345
The approach I used was:
Set up a group "authed" containing the users that are allowed to use the script which allows easy change of authorised people through existing cpanel interface and saves creating a separate store of authorised people
Set the script to run as owner
In the script,
a. Get the active user
b. Get the groups for that user
c. If that group array contains the "authed" group then go ahead otherwise fail gracefully
Upvotes: 1