GSuite Application Scope fails with "Authentication attempt took longer than 90 seconds to complete, and was cancelled"

After password update for the Google account, 'GSuite Application Scope' activity using Authentication OAuth2ClientID fails with the error "Authentication attempt took longer than 90 seconds to complete, and was cancelled.". How can this be resolved?

After password update for the Google account, 'GSuite Application Scope' activity using authentication OAuth2ClientID fails with the error "Authentication attempt took longer than 90 seconds to complete, and was cancelled.".

When the job is run, a prompt for user consent will be displayed. Grant consent for this request. Once done, an authorization token is generated which is stored based on the value of the DataStoreLocation property of the 'GSuite Application Scope' activity. This token is used for future executions of the code and user consent is not asked again.

Approaches in resolving this:

  1. If the job is being run in Unattended mode, use the Service Account key authentication as this is the recommended authentication for Unattended execution. If only OAuth Client ID authentication is allowed, log into the Robot machine, and execute the job from the Assistant. A prompt for user consent will be encountered. Provide the necessary details and grant consent.

  1. For authentication mechanism OAuth client ID, an authorization token is generated after User consent is granted. This token is stored based on the value of the DataStoreLocation property of the 'GSuite Application Scope' activity and is used for future executions of the code Since the password of the Google account used was updated, the previous token was invalidated and hence user consent is required again for the new token.