Service account JSON public

37 views
Skip to first unread message

Rishi M

unread,
Nov 1, 2022, 5:24:46 PM11/1/22
to Google Apps Script Community
Hi all, 

I am trying to publish a web app publicly that uses a service JSON to update the user's settings by calling the web app api. This will be a service json that I have configured to have domain wide delegation. I have also asked for the following permissions: 

Screenshot from 2022-11-01 14-12-42.png

In order to change the user's email setItings, I had to impersonate them using the service account json. I have also made the service json compatible with the google workspace marketplace. 

Screenshot from 2022-11-01 14-17-25.png
This allowed me to call the url using a get call to the following api and passing the email as a query parameter: 

I have also configured the app to be admin install only: Screenshot from 2022-11-01 14-20-15.png

My question is as follows: 

If an admin installs the workspace app, can I use the same service JSON that I have created in this project to access the person's external domain users? How would the domain delegation work? 

Regards, 
Rishi
Reply all
Reply to author
Forward
0 new messages