Link a Microsoft Teams tenant

Updated 16 Nov 20262 min read

Link a customer's Microsoft Teams tenant to their Focus account, so that the tenant's recordings arrive in the right account.

Before Focus can record a customer's Microsoft Teams calls, it has to know which Focus account their Microsoft tenant belongs to. This page covers that link: what it is, when you need to create it yourself, and the API call that does it.

For the whole Teams setup, including the work in the customer's Microsoft tenant, see Microsoft Teams.

When you need this#

How you set Teams upWhat to do
With the Teams setup wizard in the portalNothing. The wizard creates the link for you when it finishes.
Outside the portal, from your own onboarding systemCall the API on this page once for each customer tenant, after you have created the account.

Before you start#

You need:

  • The customer's Microsoft Entra tenant ID.

  • The telephony GUID of the customer's Focus account. This is the GUID you chose or were given when the account was created.

  • An API user that holds the Recorders.TeamsProvisioning.Manage right. See Getting Started for base URLs and authentication.

The API call#

POST {{baseUrl}}/admin/provisioning/link-teams-tenant

Tells Focus which account a Microsoft Teams tenant's recordings belong to. Without this link, recordings from the tenant have no account to go to.

Request body#

FieldTypeRequiredDescription
teamsTenantIdstring (GUID)YesThe customer's Microsoft Entra tenant ID.
telephonyGuidstring (GUID)YesThe telephony GUID of the Focus account to link the tenant to.
clientIdintegerNoThe account's numeric ID. If you send it, Focus checks that it matches the account the telephonyGuid belongs to, and rejects the request if not.

No other fields are accepted.

Example#

bash
curl -X POST "$BASE_URL/admin/provisioning/link-teams-tenant" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "teamsTenantId": "8b0d1c2e-5a6f-4b7c-9d8e-1f2a3b4c5d6e",
    "telephonyGuid": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
    "clientId": 1234
  }'

Response#

200 OK

json
{
  "secretName": "<link reference>",
  "telephonyGuid": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
  "created": true
}
FieldDescription
createdtrue if the link was created by this call. false if the tenant was already linked to this account, in which case nothing was changed.
telephonyGuidThe account the tenant is linked to.
secretNameSubphonic's internal reference for the link. Quote it if you raise a support ticket about the link.

A tenant can only belong to one account#

Linking the same tenant to the same account again is safe and changes nothing.

Focus never moves a tenant from one account to another through the API. If the tenant is already linked to a different account, the call fails with 409 Conflict and the existing link is left exactly as it was. This protects a customer's recordings from being redirected into another account by mistake. If a tenant genuinely needs to move, contact Subphonic support.

Errors#

StatusWhen
400 Bad RequestThe body is not valid, no account has that telephonyGuid, or the clientId does not match the account.
401 UnauthorizedThe bearer token is missing or has expired.
403 ForbiddenThe caller does not hold Recorders.TeamsProvisioning.Manage.
409 ConflictThe tenant is already linked to a different account.

What to do next#

Was this page helpful?