---
title: "Re-write every Google Workspace-preset SSO provider with the current WizBI Google OAuth client (run after rotating its secret)"
method: POST
path: "/api/admin/sso/google-workspace/sync"
tags: ["sso"]
---

# Re-write every Google Workspace-preset SSO provider with the current WizBI Google OAuth client (run after rotating its secret)

`POST /api/admin/sso/google-workspace/sync`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/admin/sso/google-workspace/sync`
- Auth: none declared

## Response `200`

OK.

- object
  - `updated` string[], required
  - `failed` object[], required
    - `orgId` string, required
    - `error` string, required

## Other responses

- `403`: Super admins only.
- `503`: SSO or the Google OAuth client is not configured on this deployment.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
