Skip to Content
SWARMIXDocs

API access

Provide your own app registrations for Microsoft, Google and other APIs that plugins use with members' accounts, see who connected an account, and decide how credentials reach plugins.

Who can do this:Org admin

Some plugins work with a member's own account at another company, such as the OneDrive, Google Drive and Microsoft Teams plugins. Swarmix provides a default sign-in for them. On API Access, you can provide your company's own app registration instead, see which accounts members connected, and decide whether a credential may reach plugin code.

Before you start

You need the organization admin role and the Swarmix Studio desktop app. For your own registration, you need an app registered with the provider, such as an app in Microsoft Entra, with its client ID and secret.

How a plugin gets its sign-in

A plugin asks for access to an API, such as Microsoft Graph. Swarmix chooses the registration in this order, and the last setting that applies wins:

  1. Swarmix's default registration for that API.
  2. The registration your organization chose for the plugin.
  3. A registration a policy chose for its members.

If the chosen registration can't serve the plugin, for example because it's turned off, the plugin reports that it isn't configured. Swarmix doesn't fall back to another registration.

Add a registration

  1. Open Settings → Organization → API Access and click Add Registration.
  2. Choose the Provider Type, such as Microsoft. Studio fills in the usual values for Microsoft and Google.
  3. Enter a Code, such as microsoft-graph, and a Display Name.
  4. Under API Audiences, enter one address per line for each API, such as https://graph.microsoft.com.
  5. Enter the Client ID and Client Secret of your app.
  6. Enter the Issuer URL (OIDC Discovery), or both the Authorization URL and the Token URL.
  7. Under Permitted Scopes, list the scopes plugins may ask for, separated by spaces. Left blank, plugins may ask for none.
  8. Choose what the provider shows When someone adds an account, such as Account chooser (select_account).
  9. Keep Enabled on and click Create & Test.

The test checks that Swarmix finds the provider's endpoints. It doesn't prove the client ID and secret, so connect a test account afterwards.

Add a Revocation URL (optional) if the provider publishes one. Without it, disconnecting an account deletes the token Swarmix holds, and the provider keeps its own until it expires. Google publishes one. Microsoft Entra doesn't for Graph.

Choose the registration for a plugin

  1. Open the plugin's settings page in Studio.
  2. Under Sign-in setup, choose your registration, or Swarmix default.
  3. Confirm the change.

Agents that use accounts connected through the old registration need an account on the new one. Labels such as Changed by policy for some people or Missing permissions show when a policy or the scopes differ.

See connected accounts

The Connections tab lists each account a member connected, its state (Active, Needs reconnecting, Expired or Revoked) and the plugins that use it under Used by. Click Disconnect to remove an account. The plugins listed lose access at once.

Members see and remove their own accounts under Authorizations.

Decide how credentials reach plugins

On the Token policy tab, choose one:

  • Broker only (recommended): Studio holds the credential and makes the API calls for the plugin. Plugin code doesn't receive it.
  • Allow in-process delivery: a plugin may receive a live credential inside its own process. Swarmix can't see or limit what that process does with it.

Delete a registration

Disconnect the accounts on a registration before you delete it. Deleting a registration doesn't disconnect anyone, and Swarmix can't revoke those accounts at the provider afterwards.

Best practices

  • Keep Broker only unless a plugin you trust needs the credential itself.
  • Permit only the scopes your plugins need. Each token carries only the scopes approved for the plugin that asks.
  • Use your own registration when your identity team requires sign-ins through a company app.

FAQ

On this page