Fixing Authorization Error on Copy App Staging Data to Unified Tenant task.

Description

PRDE - Bug default text according to the team DoR (Definition of Ready)

01 - PERSON OF CONTACT (PERSON THAT CAN ANSWER QUESTIONS ABOUT THE PROBLEM):

@Breno Zipoli Monteiro Papa
02 - PROBLEM (WHAT'S THE ISSUE?):

Authorization Error on Copy App Staging Data to Unified Tenant task.

When Carol App finishes installation, a Copy App Staging Data to Unified Tenant task is created on unified tenant, but this task is returning below error.

{{Something did not work when calling BigQuery API. The exception message is: ApplicationException:

{"errorCode":401,"errorMessage":"user not authorized to access a different org","possibleResponsibleField":""}

}}

Installation took place in totvstechfin org, but unified tenant is on totvstechfindev org. After that, I tried another Carol App intallation in DAEN org and unified tenant in datascience org, same error message.

Looking at some logs, I was able to see that this error is being returned in some tasks since last Thursday (03/ago): https://console.cloud.google.com/errors/detail/CJ6wkdSQ-vyeqgE?project=labs-app-mdm-production

Slack thread: https://totvslabs.slack.com/archives/C03LA7B048G/p1691409249814529

03 - STEPS TO REPRODUCE (STEP (1...N), VIDEO, SCREENSHOTS, LOGS FOLDER, HEARTBEAT, ETC. – IF IS NOT POSSIBLE TO REPRODUCE EXPLAIN THE REASON):

Try to install any Carol App that has a unified tenant in another organization. This error was reproduced with apps insightsbackoffice and openflights.
04 - LINKS (ADD A LINK TO THE BUG OR TO THE TENANT):

https://datascience.carol.ai/brenopapaunif/carol-ui/tasks/activity/fd444eb39e3349768234db0a3502c957?p=1&ps=25&sort=dateUpdated&order=DESC&filters=%5B%7B%22hideInternal%22:%22false%22%7D,%7B%22taskType%22:%5B%22COPY_UNIFIED_APP_DATA%22%5D%7D%5D

05 - EXPECTED BEHAVIOR (LIST THE EXPECTED BEHAVIORS TO CONSIDER THIS BUG AS DONE):

Copy data task being able to start even in different orgs.