The enterprise editions of Google Drive Auditor and Gmail Address Extractor use the Google Apps Admin SDK (Directory API) with Google Apps Script to create a list of all users that are part of a G Suite (Google Apps) domain.
This sample code shows how to use OAuth in Google Apps Script using Service Accounts. The G Suite admin can access the Google Drive files of any user – the username or email address of the user you are trying to impersonate specified with the method setSubject.
If your Google Add-ons are not working as expected or if you are unable to install Google Docs add-ons from the Chrome store, it is likely that your Google Apps admin has disabled the setting that allows domain users to use add-ons.
About The Author
Amit Agarwal is a web geek and founder of Digital Inspiration, a popular tech & how-to website since 2004 ..read more