2
votes

I have a function that stores the email addresses of the users from a domain as a script property. Initially this function worked without a problem on domain A, after creating a copy on domain B and making all the required changes, it keeps asking for authorization to Google Contacts even if I granted access several times.

Additional details:

  1. The script is run from a super admin account
  2. I'm using oAuth with Consumer Key and Secret
  3. Under Two-legged OAuth access control the Allow access to all API's option is checked

If you need additional details, please let me know.

1

1 Answers

1
votes

I used this with Google User Authentication:

  $client->setApprovalPrompt('auto');

I'm not sure if we are talking about the same thing, but the logic might work ?!