Teams B2B Direct Connect
ION collaborates with each customer in a Teams shared channel hosted in the
Ontinue platform tenant (ontinue.com). Customer users join with their
home-tenant identity through Entra B2B Direct Connect: no guest account and
no directory object is created for them in ontinue.com. The same channel carries
Pigeon notifications and adaptive cards, analyst-to-customer conversation, and the
Customer Portal as a Teams tab.
This page is the engineering view of the cross-tenant integration. The identity rules (who may be a member, what membership does and does not authorize) are in the Microsoft Teams identity workflow and are not repeated here.
Applicable architecture decisions
One Team per customer in ontinue.com with a shared channel; customer users keep their home-tenant identity.
ADR-0012ontinue.com is the platform directory; customer users stay in customer tenants.
ADR-0009Architecture principles
Customer users authenticate in their own tenant; ontinue.com holds no object for them.
Their tenant's MFA, Conditional Access, and joiner-mover-leaver controls apply. If a scenario needs a guest account, it is B2B Collaboration and needs its own approval and lifecycle.
Leads, Analysts, and Advisors reach a customer channel through governed ontinue.com groups.
Leads are added at onboarding, Analysts are added and removed by Alya with case assignment, Advisors come through an advisor-scoped group.
Either tenant can end the trust in its cross-tenant access settings.
The customer admin owns the inbound and outbound B2B Direct Connect settings on their side; Ontinue owns the reciprocal settings in ontinue.com.
Pigeon and Alya act through their own managed identities and Graph application permissions.
Workloads never act as a channel member or reuse a human's token to publish or manage membership.
Topology
| Element | Where it lives | Controlled by |
|---|---|---|
Team ION - <Customer name> and its shared channel | ontinue.com | Ontinue |
Group ION - <Customer name> | ontinue.com | Ontinue; governs Ontinue-side membership only |
| Customer channel members | Customer tenant identities, added directly to the shared channel | Ontinue adds them; the customer owns the identity |
| Customer-side B2B Direct Connect settings | Customer tenant | Customer Entra administrator, as an onboarding step |
| Reciprocal settings for each customer | ontinue.com | Ontinue identity team |
Customer users are not members of the ION - <Customer name> group. A
cross-tenant user cannot be a member of a group in ontinue.com without a guest
object, so customer users are added straight to the shared channel as
conversation members carrying their home tenantId.
Developer integration
Add a customer user to the shared channel
Use Graph conversationMember on the channel. The member is an
aadUserConversationMember that identifies the user in their home tenant.
POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/members
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.aadUserConversationMember",
"roles": [],
"user@odata.bind": "https://graph.microsoft.com/v1.0/users('{customer-user-object-id}')",
"tenantId": "{customer-tenant-id}"
}
- Team, channel, and customer tenant ID come from the onboarding record; never derive them from a display name.
- The call fails if the customer has not configured B2B Direct Connect for
ontinue.com. Surface that as an onboarding gap; do not fall back to a guest invitation. - Removing a customer user is
DELETE .../members/{membership-id}. Disabling the identity remains the customer’s responsibility.
Manage Analyst membership
Alya adds an Analyst to the Ontinue-side membership of the customer channel when the Analyst is assigned a case for that customer, and removes them when the assignment ends. Alya reconciles desired membership against Teams on a schedule, so a missed removal is corrected rather than left standing.
Publish notifications
Pigeon publishes incident notifications and adaptive cards into the channel with its own user-assigned managed identity and the Teams Graph application permissions approved for the notification integration. An adaptive-card action that calls an ION API is authenticated and authorized on that API independently of the card.
Portal tab sign-in
The Customer Portal tab authenticates against the customer-facing multi-tenant portal app. Because of Teams JS SDK issue #1406 the SDK cannot obtain a token for external users in a shared channel; the Bondi shell falls back to MSAL silent authentication, then interactive sign-in. Advisor on-behalf-of access uses a separate single-tenant app so customer users never carry advisor capability. See the Customer Portal workflow; the tab is an inbound path and is not part of this integration’s trust.
Graph throttling and failure handling
| Condition | Handling |
|---|---|
429 or 503 with Retry-After | Back off for the indicated time, then retry with jitter. Bound retries and surface persistent failures |
| Bulk membership changes or onboarding many customers | Queue and pace requests per tenant and per app; do not fan out unbounded parallel calls |
403 adding a customer member | Customer B2B Direct Connect settings missing or narrowed. Stop and raise an onboarding task |
404 on team or channel | Channel archived or deleted. Stop publishing for the customer and alert |
| Customer user disabled at home | Member stays listed but cannot sign in. No action needed in ontinue.com beyond periodic reconciliation |
Revocation
| Trigger | Action | Owner |
|---|---|---|
| Analyst case assignment ends | Alya removes the Analyst | Alya |
| Customer user leaves | Customer disables the identity; Ontinue removes the channel member on request or at reconciliation | Customer, Ontinue |
| Advisor relationship changes | Remove from the advisor-scoped group | Ontinue identity team |
| Customer offboarding | Disable publishing, remove external members and the Ontinue-side group, archive the Team, remove the reciprocal cross-tenant settings if no other scenario uses them | Ontinue with customer administrator |
| Customer emergency revocation | Customer removes ontinue.com from their B2B Direct Connect settings | Customer administrator |