Run Harebell · Install it

Connect Slack, Google and Microsoft

An app that needs company data is not handed a password, and Harebell never asks builders for one. Instead, an administrator connects each service once, for the whole company, and every app afterward asks for the one thing it needs, such as a single Slack channel. This page shows how to make those connections for Slack, Google Workspace and Microsoft 365, what each one stores, and what to check afterward.

You will need your cloud account connected first, because the connection forms run inside it. The reason is deliberate. When you paste a secret, it goes from your browser to a form on your organization's sign-in host, which is served from your account, and is written straight into your account. It does not pass through Harebell's side.

Only administrators can connect a service. Each connection is made once, whether the company has two apps or two hundred.

Steps#

0 of 4 done
  1. 1

    Open Connections#

    In the console, open Connections and press Connect a service. The page lists Slack, Microsoft 365, Google Workspace, Postgres and Web APIs, with what each one gives apps. Press Connect next to the one you want, which opens its setup. Each service's page also has a Setup tab you can return to later.

  2. 2

    Connect Slack#

    Harebell makes your company's own Slack app for you, with its name, its icon and everything it needs, so there is no shared Harebell app in your workspace. Its tokens stay in your cloud account. It takes about a minute, and you need to be allowed to add apps to the workspace. If your workspace asks an owner to approve new apps, Slack sends them a request, and you finish once they approve it.

    Press Start. A small window opens, which may ask you to sign in first, and it walks you through three things. Get a setup key from Slack, which takes one click there, and copy it. Paste it into the form, which makes the app. Then click Allow in Slack. Harebell sends you a direct message in Slack to show that it works.

    The setup key is a Slack app configuration token. Harebell keeps it, refreshed, so that agents can get their own Slack apps too. If your workspace does not allow setup keys, the Technical details on the setup card offer two other ways: set the app up by hand, or paste the tokens of an app you made before.

    Then do one more thing, and it matters. For access to change within minutes when people join or leave channels, your Slack app needs events turned on. In the app's settings in Slack, under Event Subscriptions, turn events on with the request URL the console shows, and wait until Slack shows it as Verified, pressing Retry if it does not. Under Subscribe to bot events, add member_joined_channel and member_left_channel, and save. Until you do, Harebell rereads who can see each channel every 15 minutes instead.

    Harebell also sends approval cards and notices as direct messages from this app. If your Slack app was made before that existed, the Technical details list the bot scopes im:write and chat:write.customize, the interactivity address and the Messages tab to turn on. Until then, approvals wait on Harebell's Approvals page.

  3. 3

    Connect Google Workspace#

    Apps reach Sheets, Docs and Drive files through a user in your Workspace, which Harebell calls a robot user. You need to be a Google Workspace administrator, and it takes about three minutes.

    Press Start and follow three steps. Paste one line into Google Cloud Shell, which sets up Google Cloud for Harebell with no keys. Press Authorize in Google's Admin console, which opens already filled in. Then name the user that apps act as. Harebell checks that everything works and says what to fix if it does not.

    There is no key to rotate. Google trusts a signed claim from your AWS account, through a workload identity pool, so revoking access later means deleting that pool in Google Cloud.

    An app reads only the files that have been shared with the robot user, and each app only the files granted to it. To give an app a sheet, the builder shares the sheet with that user. If the setup card says your cloud account is not ready for this yet, update the cloud setup from the Cloud account page and come back.

    After it is connected, the card shows Works or Needs a fix. Harebell checks every 30 seconds until it works, and hourly afterward. After changing anything in Google, press Check now.

  4. 4

    Connect Microsoft 365#

    Harebell reaches Teams as an app registration in your own tenant. It trusts your cloud account, so there is no client secret to make, paste or rotate. You need to be an administrator of your Entra tenant, and the steps are on the setup card.

    1. In the Microsoft Entra admin center, under App registrations, make a registration named Harebell apps for your organizational directory only.
    2. Under API permissions, add the Microsoft Graph application permissions the card lists, and grant admin consent. They cover files, SharePoint sites and the members of groups, teams and channels. Harebell's gateway still lets each app reach only what it was granted, and it reads people's email addresses only to find who an approval goes to and who can read or owns a file or channel.
    3. Under Certificates and secrets, add a federated credential for Other issuer, using the issuer, subject identifier and audience that the card shows with copy buttons.
    4. To use Teams for approvals, add a bot in the Teams Developer Portal with the registration's application ID and the messaging endpoint the card shows, make it an app, and install it for everyone with an app setup policy.
    5. Open the link at the end of the card, and give the tenant ID and application ID, both on the registration's Overview page.

    Microsoft 365 shows as connected once that last form has them. An app's list of data cannot name a Microsoft file yet, so today this connection serves approvals and agents in Teams.

Disconnecting#

To disconnect a service, open its page and use the Disconnect card. Apps stop reaching it at once. Disconnecting does not delete what is stored in your account, so also revoke it at the other end: uninstall the Slack app in Slack, delete the federated credential in Entra, or delete the workload identity pool in Google Cloud. To use a different Slack app, Entra registration or Google service account, run its setup again.

What each connection stores#

Service What is stored in your account
Slack The bot token, in a Secrets Manager secret. Agents' own Slack apps and the configuration token are sealed with a KMS key
Google Workspace No secret. Only the names of the pool, the service account and the robot user
Microsoft 365 No secret. Only the tenant ID and the application ID

Our side can read that a connection exists, so that the console can show it as connected. It cannot open any secret. The security model explains the keys.

An example#

Ben Okafor connects Slack on a Monday, and pastes the setup key Slack gave him. He turns on events with the request URL, and adds the two member events. The next day Sally Chen builds an app that reads #finance-reports, and the release plan shows that the channel's creator, Ben, must approve it. Data owners and data access shows what he sees.