Link a Microsoft Teams tenant
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 up | What to do |
|---|---|
| With the Teams setup wizard in the portal | Nothing. The wizard creates the link for you when it finishes. |
| Outside the portal, from your own onboarding system | Call 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.Manageright. 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#
| Field | Type | Required | Description |
|---|---|---|---|
teamsTenantId | string (GUID) | Yes | The customer's Microsoft Entra tenant ID. |
telephonyGuid | string (GUID) | Yes | The telephony GUID of the Focus account to link the tenant to. |
clientId | integer | No | The 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#
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
{
"secretName": "<link reference>",
"telephonyGuid": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
"created": true
}| Field | Description |
|---|---|
created | true if the link was created by this call. false if the tenant was already linked to this account, in which case nothing was changed. |
telephonyGuid | The account the tenant is linked to. |
secretName | Subphonic'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#
| Status | When |
|---|---|
400 Bad Request | The body is not valid, no account has that telephonyGuid, or the clientId does not match the account. |
401 Unauthorized | The bearer token is missing or has expired. |
403 Forbidden | The caller does not hold Recorders.TeamsProvisioning.Manage. |
409 Conflict | The tenant is already linked to a different account. |
What to do next#
Add subscribers and endpoints, so Focus knows which Teams users to record and what they are called.