KKIMS on-site docs
Google services

Google reviews: Business Profile access, OAuth client and Connect Google

Get Business Profile API access approved, set up the Google Auth Platform consent screen and a Web application OAuth client, save the client into the environment, press Connect Google in the CMS, and check the nightly sync.

The website can show a wall of each hospital's five-star Google reviews. The CMS reads them with the Business Profile APIs, signed in as a Google account that manages the hospitals' Business Profiles. Setting it up has five parts, in this order:

  1. Request Business Profile API access (Google reviews it; can take weeks, so start first).
  2. Set up the Google Auth Platform (the consent screen).
  3. Create the Web application OAuth client.
  4. Save the client into the environment (a one-off pod, once per environment).
  5. Connect Google in the CMS, then check the sync.

#How the code uses Google

#Facts read from the code

Fact Value
OAuth flow Authorization code with PKCE (S256), access_type=offline, prompt=consent
Scopes requested https://www.googleapis.com/auth/business.manage, openid, email
Client type required Web application. A Desktop app client is refused by the save script
Redirect URI <CMS_URL>/api/reviews/google/callback, character for character (for example https://cms-uat.kims.example/api/reviews/google/callback)
Start route <CMS_URL>/api/reviews/google/start (the Connect Google button)
APIs called mybusinessaccountmanagement.googleapis.com/v1/accounts, mybusinessbusinessinformation.googleapis.com/v1/{account}/locations, mybusiness.googleapis.com/v4/{account}/locations/{id}/reviews (Business Profile API v4.9 reviews.list), and oauth2.googleapis.com/token
Where the client is kept PostgreSQL secrets, row google.reviews.oauth-client, AES-256-GCM under SECRETS_KEY
Where the sign-in is kept Row google.reviews.connection (a refresh token, the account email, the location per hospital). A sign-in waiting for its listings to be chosen is google.reviews.pending
How the client is saved Only with scripts/reviews/save-google-client.mts. There is no CMS screen for the client id and secret
Who may press Connect Google CMS Admin (and Superadmin): permission reviews.connect
Sync The reviews.sync job, queued by the kims-cron-reviews-sync CronJob, run by the worker. Only five-star reviews go on the wall
Website The site build exports the review feeds from PostgreSQL. Reviews reach the website only at the next site build

#Rules worth knowing before testing

Rule Value
Reviews per hospital wall Up to 100
Fewest reviews for a wall to show 12 (fewer, and the hospital shows no wall)
Feed older than 14 days is not served: the wall hides itself
Connect must finish within 10 minutes from pressing the button to Google's return; 30 minutes to choose listings

#Request Business Profile API access

#Requirements

Google approves access per Cloud project. Its requirements:

  • A Business Profile that is verified and has been active for 60 days or more (KIMS's hospital listings qualify).
  • A website for the business on that profile.
  • The request is sent from an email address that is an owner or manager of that Business Profile.
  • The Cloud project's project number (google/cloud-project).

#Submit the request

  1. In the Cloud console, select the KIMS project and copy its Project number from the Project info card on the dashboard.
  2. Open the GBP API contact form: https://support.google.com/business/contact/api_default.
  3. Sign in as the Business Profile owner or manager (a KIMS person, not the engineer, unless the engineer is a manager of the listings).
  4. In the drop-down, choose Application for Basic API Access.
  5. Fill in the form: the project number, the business (KIMS Hospitals), the website, and a short reason, for example: "Show our hospitals' own Google reviews on our website, read-only, refreshed daily."
  6. Submit.

Google answers by email after review. There is no fixed time; plan for days to weeks.

#How to tell it was approved

The quota tells you, even before the email arrives:

  1. APIs & Services > Enabled APIs & services > My Business Account Management API (enable it first if it is not listed: google/cloud-project).
  2. Tab Quotas & System Limits.
Requests per minute Meaning
0 Not approved. Connect Google ends with: Google has not approved this project for the Business Profile API yet (its quota is 0). Nothing was saved.
300 Approved

Once approved, enable the three Business Profile APIs if you have not already (google/cloud-project).

#If an approved project already exists

If KIMS or the agency already has an approved project (the old platform's reviews wall used one), you can use it: create the OAuth client there and skip the request. Ask its owner to add you with OAuth Config Editor for the client steps.

#Set up the Google Auth Platform

Google has renamed the "OAuth consent screen" to the Google Auth Platform, with pages Branding, Audience, Data Access and Clients. Older consoles still show APIs & Services > OAuth consent screen; the fields are the same.

#Choose Internal or External

Choose When Effect
Internal The project belongs to KIMS's Google Workspace (Cloud) organisation and the Google account that manages the Business Profiles is a member of that organisation Only that organisation's accounts can sign in. No verification, no test users, no 7-day expiry. Best if it fits
External Anything else (for example the Business Profiles are managed from a Gmail account or an agency's account) Any Google account can sign in. Must be moved to In production (see Publish the app)

Do not choose Personal unless the project creator's own account is the one that manages the Business Profiles: a Personal app can only ever be authorised by that one account, and the choice cannot be undone.

#Get started

  1. In the Cloud console, open the navigation menu > Google Auth Platform (or search for it). If it shows an overview with Get started, click it. If it shows Branding, it was set up before: check each field below instead.
  2. App information:
    • App name: KIMS Website CMS. Do not use the word Google in it.
    • User support email: a KIMS mailbox or Google Group someone reads.
    • Click Next.
  3. Audience: Internal or External, as decided above. Click Next.
  4. Contact information: a KIMS email address Google can send project notices to. Click Next.
  5. Finish: tick that you agree to the Google API Services User Data Policy. Click Continue, then Create.

You should land on the Google Auth Platform Overview page with no setup warning.

#Branding

  1. Open Branding.
  2. Check App name and User support email.
  3. Authorized domains: add the CMS's registered domain, for example kims.example (not cms-uat.kims.example). If KIMS's CMS is on several domains, add each.
  4. Developer contact information: a KIMS email.
  5. Click Save.

The app's logo and home page links are optional. Adding a logo triggers brand verification, which is not needed here.

#Data Access: the scopes

  1. Open Data Access.
  2. Click Add or remove scopes.
  3. Tick .../auth/userinfo.email and openid.
  4. In Manually add scopes, paste https://www.googleapis.com/auth/business.manage and click Add to table, then tick it.
  5. Click Update, then Save.

You should see the three scopes in the table. Google may list business.manage under non-sensitive or sensitive scopes; the console decides. If it is sensitive and the app is External, the consent page shows a "Google hasn't verified this app" warning. For one KIMS account signing in once, that warning can be passed (Advanced > Go to KIMS Website CMS), or KIMS can submit the app for verification from the Verification Center.

#Audience: test users and publishing

For an Internal app there is nothing to do here.

For an External app:

  1. Open Audience.
  2. The Publishing status is Testing at first. In Testing, only listed test users can sign in, and their refresh tokens expire after 7 days. The reviews sync would then stop every week with "Google has signed this account out, or the sign-in has expired."

#Publish the app (External only)

  1. On Audience, click Publish app.
  2. Confirm.

The status becomes In production. If you cannot publish yet, add the signing-in account under Test users > Add users for the first test, and publish before go-live.

#Create the Web application OAuth client

#Create the client

  1. Open Google Auth Platform > Clients (older consoles: APIs & Services > Credentials > Create credentials > OAuth client ID).

  2. Click Create client.

  3. Application type: Web application.

  4. Name: KIMS CMS.

  5. Authorized JavaScript origins: leave empty (the CMS server calls Google, not the browser).

  6. Authorized redirect URIs: click Add URI and enter exactly:

    • UAT: https://<CMS_UAT_HOST>/api/reviews/google/callback
    • Production: https://<CMS_PRODUCTION_HOST>/api/reviews/google/callback

    One client may carry both, or make one client per environment. No trailing slash, https only, the host exactly as in CMS_URL.

  7. Click Create.

  8. The OAuth client created dialog shows the client ID and the client secret. Click Download JSON. The file is called client_secret_<id>.apps.googleusercontent.com.json.

Warning

Google shows and lets you download the full client secret only once, at creation. Keep the JSON file as safely as a password (KIMS's vault), and never commit it or paste it anywhere. If it is lost, add a new secret on the client's page (Clients > the client > Add secret), or create a new client.

Redirect URI changes can take from five minutes to a few hours to apply at Google. Until then, Connect Google ends with redirect_uri_mismatch.

#What the JSON file must look like

The save script only accepts a file with a web object. Its shape (values are placeholders):

json
{
  "web": {
    "client_id": "<GOOGLE_CLIENT_ID>.apps.googleusercontent.com",
    "client_secret": "<GOOGLE_CLIENT_SECRET>",
    "redirect_uris": ["https://<CMS_HOST>/api/reviews/google/callback"],
    "project_id": "<GCP_PROJECT_ID>",
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://oauth2.googleapis.com/token"
  }
}

If you created a new secret and have no download, you can write this file by hand with your editor (only client_id and client_secret are read; redirect_uris is only used for a warning). A file with installed instead of web is a Desktop app client and is refused with: That is a Desktop app client. Connect Google needs a Web application client....

#Save the client into the environment

The client id and secret are stored encrypted in the environment's database, which is only reachable from inside KIMS's network. So the save runs in a one-off pod (deploy/handover/node-tools-pod.yaml): the KIMS v2 image, reading only the kims-database and kims-app Secrets, with no AWS access, deleting itself after two hours if forgotten.

Do this once per environment, after the first deploy (deploy/first-deploy). Running it again replaces the saved client.

Warning

Needs the windows-fixes commits, not yet merged into main. deploy/handover/node-tools-pod.yaml exists only on the windows-fixes branch of kims-v2. On a main checkout, the helper's --dry-run works but the real save stops with an ENOENT error naming that file, and by-hand step 2 below fails the same way. Way round until it is merged: take the file from that branch into your main checkout before you start (it is not committed; delete it afterwards):

bash
git fetch origin windows-fixes
git show origin/windows-fixes:deploy/handover/node-tools-pod.yaml > deploy/handover/node-tools-pod.yaml

On Windows run the same two lines in Git Bash (PowerShell 5.1's > writes UTF-16, which kubectl cannot read). The script it runs, scripts/reviews/save-google-client.mts, is the same on main.

#Quick way: the deploy helper

From the folder that holds deployment-steps and repos/kims-v2 (with npm install done in repos/kims-v2). Check the file first; this saves nothing:

bash
node deployment-steps/scripts/deploy.mjs kims google-client save --context <KUBE_CONTEXT> --namespace <NAMESPACE> --file <PATH_TO_CLIENT_JSON> --dry-run
node deployment-steps/scripts/deploy.mjs kims google-client save --context <KUBE_CONTEXT> --namespace <NAMESPACE> --file <PATH_TO_CLIENT_JSON>
bash
node deployment-steps/scripts/deploy.mjs kims google-client save --context <KUBE_CONTEXT> --namespace <NAMESPACE> --file <PATH_TO_CLIENT_JSON> --dry-run
node deployment-steps/scripts/deploy.mjs kims google-client save --context <KUBE_CONTEXT> --namespace <NAMESPACE> --file <PATH_TO_CLIENT_JSON>
powershell
node deployment-steps/scripts/deploy.mjs kims google-client save --context <KUBE_CONTEXT> --namespace <NAMESPACE> --file <PATH_TO_CLIENT_JSON> --dry-run
node deployment-steps/scripts/deploy.mjs kims google-client save --context <KUBE_CONTEXT> --namespace <NAMESPACE> --file <PATH_TO_CLIENT_JSON>

The dry run ends OK: the client file is right. The save ends OK: the Google OAuth client is saved. It reads CMS_URL, KIMS_ENVIRONMENT and the image from the running deployment; --cms-origin, --env and --image override them. It always deletes the pod. More in operate/deploy-cli.

#By hand, step 1: bundle the script

The image has Node but not tsx or the repo's packages, so bundle the script into one file on your machine. From the kims-v2 folder, with npm install done:

bash
npx esbuild scripts/reviews/save-google-client.mts --bundle --platform=node --format=esm --target=node24 \
  --external:sharp --external:pg-native \
  "--banner:js=import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);" \
  --outfile="$HOME/save-google-client.mjs"
bash
npx esbuild scripts/reviews/save-google-client.mts --bundle --platform=node --format=esm --target=node24 \
  --external:sharp --external:pg-native \
  "--banner:js=import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);" \
  --outfile="$HOME/save-google-client.mjs"
powershell
npx esbuild scripts/reviews/save-google-client.mts --bundle --platform=node --format=esm --target=node24 --external:sharp --external:pg-native "--banner:js=import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);" --outfile="$HOME\save-google-client.mjs"

Expected: esbuild prints the output file and its size, for example save-google-client.mjs 1.2mb, and Done.

#By hand, step 2: start the pod with the CMS's image

bash
IMAGE=$(kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> get deployment kims-cms -o jsonpath='{.spec.template.spec.containers[0].image}')
sed "s#<registry>/kims/kims-v2:<tag>#${IMAGE}#" deploy/handover/node-tools-pod.yaml > "$HOME/node-tools-pod.yaml"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> apply -f "$HOME/node-tools-pod.yaml"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> wait --for=condition=Ready pod/kims-node-tools --timeout=180s
bash
IMAGE=$(kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> get deployment kims-cms -o jsonpath='{.spec.template.spec.containers[0].image}')
sed "s#<registry>/kims/kims-v2:<tag>#${IMAGE}#" deploy/handover/node-tools-pod.yaml > "$HOME/node-tools-pod.yaml"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> apply -f "$HOME/node-tools-pod.yaml"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> wait --for=condition=Ready pod/kims-node-tools --timeout=180s
powershell
$Image = kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> get deployment kims-cms -o jsonpath="{.spec.template.spec.containers[0].image}"
(Get-Content deploy\handover\node-tools-pod.yaml -Raw) -replace '<registry>/kims/kims-v2:<tag>', $Image | Set-Content -Encoding ascii "$HOME\node-tools-pod.yaml"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> apply -f "$HOME\node-tools-pod.yaml"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> wait --for=condition=Ready pod/kims-node-tools --timeout=180s

Expected: pod/kims-node-tools created, then pod/kims-node-tools condition met. On Windows, -Encoding ascii matters: Windows PowerShell 5.1's default adds a byte-order mark that kubectl rejects.

#By hand, step 3: copy the script and the client file in

kubectl cp reads a Windows drive letter (C:) as a pod name, so on Windows copy from inside the folder using bare file names.

bash
cp <PATH_TO_CLIENT_JSON> "$HOME/client_secret.json" && chmod 600 "$HOME/client_secret.json"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> cp "$HOME/save-google-client.mjs" kims-node-tools:/work/save-google-client.mjs
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> cp "$HOME/client_secret.json" kims-node-tools:/work/client_secret.json
bash
cp <PATH_TO_CLIENT_JSON> "$HOME/client_secret.json" && chmod 600 "$HOME/client_secret.json"
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> cp "$HOME/save-google-client.mjs" kims-node-tools:/work/save-google-client.mjs
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> cp "$HOME/client_secret.json" kims-node-tools:/work/client_secret.json
powershell
Copy-Item <PATH_TO_CLIENT_JSON> "$HOME\client_secret.json"
Set-Location $HOME
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> cp save-google-client.mjs kims-node-tools:/work/save-google-client.mjs
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> cp client_secret.json kims-node-tools:/work/client_secret.json

Each kubectl cp prints nothing when it works.

#By hand, step 4: dry run, then save

--env is the environment's name (uat or production, as in KIMS_ENVIRONMENT), --cms-origin is CMS_URL.

bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec kims-node-tools -- node /work/save-google-client.mjs --env <ENVIRONMENT> --client-file /work/client_secret.json --cms-origin https://<CMS_HOST> --dry-run
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec kims-node-tools -- node /work/save-google-client.mjs --env <ENVIRONMENT> --client-file /work/client_secret.json --cms-origin https://<CMS_HOST>
bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec kims-node-tools -- node /work/save-google-client.mjs --env <ENVIRONMENT> --client-file /work/client_secret.json --cms-origin https://<CMS_HOST> --dry-run
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec kims-node-tools -- node /work/save-google-client.mjs --env <ENVIRONMENT> --client-file /work/client_secret.json --cms-origin https://<CMS_HOST>
powershell
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec kims-node-tools -- node /work/save-google-client.mjs --env <ENVIRONMENT> --client-file /work/client_secret.json --cms-origin https://<CMS_HOST> --dry-run
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> exec kims-node-tools -- node /work/save-google-client.mjs --env <ENVIRONMENT> --client-file /work/client_secret.json --cms-origin https://<CMS_HOST>

Expected from the dry run:

text
Environment production: a Web application client, id starting 1234567890-abcde...
The address Google has to be told about, under Authorised redirect URIs:
  https://<CMS_HOST>/api/reviews/google/callback

--dry-run: not writing google.reviews.oauth-client.

and from the save, the same first lines, then:

text
Saved as google.reviews.oauth-client. Now an Admin presses Connect Google on the CMS's Google reviews screen.

If it also prints Warning: the file does not list that address., the downloaded file's redirect_uris lacks the callback. That is fine if you added the URI on the client after downloading; otherwise add it now (Create the client, step 6). Nothing secret is printed.

#By hand, step 5: clean up

bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> delete pod kims-node-tools
rm -f "$HOME/save-google-client.mjs" "$HOME/node-tools-pod.yaml" "$HOME/client_secret.json"
bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> delete pod kims-node-tools
rm -f "$HOME/save-google-client.mjs" "$HOME/node-tools-pod.yaml" "$HOME/client_secret.json"
powershell
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> delete pod kims-node-tools
Remove-Item -LiteralPath "$HOME\save-google-client.mjs", "$HOME\node-tools-pod.yaml", "$HOME\client_secret.json"

Expected: pod "kims-node-tools" deleted. Keep the original JSON in KIMS's vault, or delete it: the secret can be replaced from the console if needed.

#Connect Google in the CMS

#Who signs in

The Google account used must be an owner or manager of every hospital's Business Profile (directly, or through a Business Profile organisation or location group). If an invitation to manage the listings is still pending, accept it at https://business.google.com first. Whose account it is shows on the screen afterwards ("Reading reviews as ...").

#Steps

  1. Sign in to the CMS as an Admin: https://<CMS_HOST>.
  2. Open Google reviews in the left navigation.
  3. Click Connect Google. The browser goes to Google's consent page (accounts.google.com).
  4. Sign in with the Business Profile account, and allow access ("See, edit, create and delete your Google business listings" plus your email address).
  5. Google sends the browser back to https://<CMS_HOST>/api/reviews/google/callback, and the CMS returns to the Google reviews screen with every listing that account can see.
  6. For each hospital, choose its listing. Where exactly one listing matches the hospital's name, it is already suggested; check the address.
  7. Confirm. The CMS checks the choices with Google again, reads one page of reviews as a test, and saves the sign-in.

Do steps 3 to 6 without a break: the return must come within 10 minutes of the click, and the choice within 30 minutes of signing in.

You should see the connection shown as connected, with the Google account's email.

#Messages the screen can give

Message (start of it) Cause Fix
The Google client has not been saved yet... Step Save the client into the environment not done for this environment Do it
Google has not approved this project for the Business Profile API yet (its quota is 0) Access request not approved Request Business Profile API access
That API is not switched on in the Cloud project. One of the three Business Profile APIs not enabled Enable it (google/cloud-project)
This Google account can see no Business Profile listings. Wrong account, or invitation not accepted Sign in with the managing account; accept at business.google.com
Google does not recognise the saved client id and secret Client deleted, or its secret replaced Save the client again, then connect again
Google would not accept that sign-in code. Took too long, or the page was reloaded Connect again from the start
Google was told no Consent cancelled, or an Internal app and an outside account Try again; check the Audience choice
That sign-in did not start in this browser, or it took more than ten minutes. Callback opened in another browser, or slow Press Connect Google and finish within 10 minutes
Google's own error page: redirect_uri_mismatch The redirect URI on the client is not exactly <CMS_URL>/api/reviews/google/callback, or Google has not applied it yet Fix the URI; wait up to a few hours after a change
Google's own error page: access_denied with "has not completed the Google verification process" External app in Testing and the account is not a test user Publish the app, or add the test user
The reviews sync could not be reached or Connecting Google did not work The CMS pod cannot reach Google google/outbound-access

#Check the sync

#When it runs

The chart's CronJob kims-cron-reviews-sync queues a reviews.sync job and a worker runs it. Its schedule comes from the Helm values (cron.tasks, default 0 */6 * * *, read in cron.timeZone): see deploy/helm-values.

#Run a sync now

bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> create job --from=cronjob/kims-cron-reviews-sync reviews-sync-now-1
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> wait --for=condition=complete job/reviews-sync-now-1 --timeout=120s
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> logs deploy/kims-worker --since=10m | grep -i review
bash
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> create job --from=cronjob/kims-cron-reviews-sync reviews-sync-now-1
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> wait --for=condition=complete job/reviews-sync-now-1 --timeout=120s
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> logs deploy/kims-worker --since=10m | grep -i review
powershell
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> create job --from=cronjob/kims-cron-reviews-sync reviews-sync-now-1
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> wait --for=condition=complete job/reviews-sync-now-1 --timeout=120s
kubectl --context <KUBE_CONTEXT> -n <NAMESPACE> logs deploy/kims-worker --since=10m | Select-String -Pattern review

Expected: job.batch/reviews-sync-now-1 created, then job.batch/reviews-sync-now-1 condition met. The job only queues the work; the worker does it within a minute or two. Use a new name (-2, -3) each time; finished jobs are removed after an hour.

On the Google reviews screen you should then see the last run's time, its state (ok) and the reviews per hospital.

#Reviews on the website

The website reads the reviews feeds that the site build writes. After the first good sync, run or wait for a site build (deploy/website). A hospital with fewer than 12 five-star reviews shows no wall; that is by design.

#States the screen shows

State Meaning Fix
not-connected No sign-in saved Connect Google
no-access Project not approved, or an API switched off Access request, enable APIs
reconnect The sign-in was revoked or expired (for example an External app left in Testing) Publish the app; press Connect Google again
failed Google did not answer or answered oddly Usually temporary; the next run retries. Two failed nights in a row raise a warning
ok The last run worked

#UAT and production

Step UAT Production
Business Profile access Once per Cloud project Same project: already done
Consent screen Once per project Same
OAuth client Redirect URI on the UAT CMS host Add the production redirect URI to the same client, or make a second client
Save the client In the UAT namespace, --env uat In the production namespace, --env production, --cms-origin https://<CMS_PRODUCTION_HOST>
Connect Google Admin on the UAT CMS Admin on the production CMS (separate database)
Google account The Business Profile manager Usually the same account

Connecting UAT and production with the same Google account is fine: both only read.

#Sources

Built 2026-11-29. Commands are shown for the system picked at the top; every block has all three.