google apps script - Admin access to Domain User's Gmail? -


i'm writing auditing script focusing on users' gmails , need access message lists. have admin access , scopes adminsdk, script executed admin.

i'm wondering how this? have domain's userlist via directory, can't use gmailapp specific user, current user(admin). thinking assigning timed trigger each of users , using gmailapp locally, can't figure out how either(i don't think possible).

one idea i'm working on pinging gmail api using admin's credentials via urlfetchapp, can domain's users information method?

what thoughts? guidance appreciated. i'm using gas on service account.

while using service account, can impersonate users in domain , perform actions on behalf. need perform domain wide delegation of authority in domain.

here can find documentation domain wide delegation.

here can see example, know on drive principle same.

hope helps.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -