Skip to main content

Data Connectors

The Microsoft 365 and Google connectors let each user reach their own cloud data from Kamiwaza: SharePoint, OneDrive, Outlook and Calendar for Microsoft 365; Drive, Gmail and Calendar for Google. An administrator registers an application with Microsoft or Google once and creates the connector in Kamiwaza. Each user then connects their own account and sees only what that account can see.

StepWhoWhat
1AdministratorRegister the application with Microsoft or Google
2AdministratorCreate the data source on the Catalog page and share it
3Each userConnect their account on the Connectors page

To run a connector you built against your own data source, see Run Your Own Connector instead.

Before you start​

You need:

  • The Kamiwaza administrator role. Only administrators create, change or delete a data source.
  • An application registration for the service: a Microsoft Entra ID app for Microsoft 365, or a Google Cloud OAuth client for Google. The sections below list what each one needs.

Create the data source​

Each connector you set up is a data source on the Catalog page, with its connection: the application settings Kamiwaza uses when a user connects.

  1. Open Catalog. On the Connected sources tab, choose Create data source.
  2. Choose Microsoft 365 or Google Drive.
  3. Enter a Display Name. It also names the data source.
  4. Fill in the connector's settings, as in Microsoft 365 or Google.
  5. Choose Save. The Share dialog opens.

A new data source is shared with no one, so users don't see the connector until you share it. In the Share dialog, add the users and groups that should use it, or choose Share with everyone, then choose Save. To share it with one workroom's members, use the grants API, as in Run Your Own Connector, step 3.

Check: the data source is listed on the Connected sources tab, and a user you shared it with sees the connector on their Connectors page.

Change, share or delete it​

Each data source on the Connected sources tab has three actions:

  • Configure changes its settings. A saved secret, such as the Google client secret, shows masked; choose the pencil to replace it, or leave it as it is to keep it.
  • Share changes who can use it.
  • Delete removes the data source, its connection and credentials, and every user's sign-in to it. It can't be undone.

Connect your account​

Each user connects their own account:

  1. Open Connectors. Under My connections, find the connector and choose Connect.
  2. Sign in to the service:
    • Microsoft 365 shows a code. Open the Microsoft sign-in page it links to, enter the code, and sign in. Kamiwaza finishes the connection when you're done.
    • Google sends you to Google's consent screen. Sign in and allow access.
  3. The connector shows Connected.

A connector that needs you to sign in again shows Reconnect Required; choose Reconnect. You see only connectors whose data source an administrator shared with you.

Microsoft 365​

The Microsoft 365 connector reaches SharePoint, OneDrive, Outlook mail and Calendar through Microsoft Graph, as the signed-in user. It is a public client: users sign in with a device code, so it uses no client secret and no redirect URI.

Register the app in Microsoft Entra ID​

  1. In the Microsoft Entra admin center, register a new application for Kamiwaza.
  2. Under Authentication, set Allow public client flows to Yes. Without it, the device-code sign-in fails.
  3. Under API permissions, add these delegated Microsoft Graph permissions: User.Read, Files.ReadWrite.All, Sites.ReadWrite.All, Mail.ReadWrite, Calendars.ReadWrite and offline_access. Grant admin consent if your tenant requires it.
  4. From the app's Overview, copy the Directory (tenant) ID and the Application (client) ID.

Settings in Kamiwaza​

SettingValue
Directory (tenant) IDFrom the app's Overview
Application (client) IDFrom the app's Overview
Microsoft Graph accessThe access to request when a user connects: Files, Mail, Calendar and SharePoint sites, each read/write. Choose only what your users need.

Google​

The Google connector (Google Drive in the connector list) gives each user read-only access to their Drive, Gmail and Calendar. It cannot send mail, change files or change calendar events.

Create the OAuth client in Google Cloud Console​

  1. Open the Google Cloud Console and create or select a project.
  2. Under APIs & Services → Library, enable the API for each service you plan to offer: Gmail API, Google Drive API, Google Calendar API. A service whose API isn't enabled fails until you enable it and the user reconnects.
  3. Configure the OAuth consent screen (APIs & Services → OAuth consent screen):
    • Choose Internal for a single Google Workspace organization, or External, which needs test users, or a published app that Google has verified.
    • Add the scopes you will request: gmail.readonly, drive.readonly, calendar.readonly, plus userinfo.email and userinfo.profile for sign-in.
  4. Under APIs & Services → Credentials → Create credentials → OAuth client ID, create a client of type Web application. Under Authorized redirect URIs, add https://<your Kamiwaza host>/api/connectors/public/google/callback.
  5. Copy the Client ID (it ends in .apps.googleusercontent.com) and the Client Secret.

Settings in Kamiwaza​

SettingValue
Client IDFrom the OAuth client
Client SecretFrom the OAuth client
Redirect URIPrefilled as <the address you're using>/api/connectors/public/google/callback. Change the scheme and host to the address your users reach Kamiwaza at. It must exactly match an Authorized redirect URI on the OAuth client.
Google Workspace accessGmail (read-only), Drive (read-only), Calendar (read-only). Choose only services whose API you enabled.

Sensitive and restricted scopes. Gmail and Drive read-only are restricted Google scopes. With an Internal consent screen this is fine. For an External app, Google may require app verification before users outside your test-user list can allow access.

Troubleshooting​

SymptomCause and fix
A user doesn't see the connector on ConnectorsIts data source isn't shared with them. Share it, as in Create the data source.
Microsoft 365 sign-in fails after the user enters the code, with an error about a public client or a missing client secretAllow public client flows is off on the Entra app. Turn it on, then have the user choose Connect again.
Microsoft 365: "The authentication code has expired"The user didn't finish signing in in time. Close the dialog and choose Connect again.
Microsoft 365 sign-in is refused for a permissionThe Entra app lacks one of the delegated permissions above, or needs admin consent. Add or consent to it, then have the user reconnect.
Google: redirect_uri_mismatch during sign-inThe connector's Redirect URI doesn't exactly match an Authorized redirect URI on the OAuth client. Make the scheme, host and /api/connectors/public/google/callback path identical, on the client you configured.
Google: one service fails, or the connection asks to reconnect and names a Google APIThat API isn't enabled in the project. Enable it under APIs & Services → Library, then have the user reconnect. Enabling it doesn't repair an existing connection by itself.