I recently changed the email addresses for several distribution groups, and I want to help users remove the OLD addresses from their contact list so they don't accidentally send emails into the ether. The Admin SDK does not provide access to other users' contacts, so I have made a script (EDIT: deployed as a web app) that runs as the user at the keyboard to delete the relevant groups. However, when the page loads, they are automatically prompted for authorization.
To avoid confusion, I would like to show a message of explanation before this occurs. To do this, I need to detect whether the user has already granted authorization for the required actions.
I have seen a similar behavior in an older add on. In that case, the author used ScriptProperties.getProperty('scriptAuthorized')
, but this is now deprecated. Anyone know how to accomplish this?