Customer Identity Onboarding
This runbook activates a customer tenant for V2 Portal/API and Teams shared-channel access. Security-resource permissions for Sentinel, Defender/MDE, and Microsoft Graph are completed through Customer Environment Access.
Prerequisites
- An approved customer onboarding record and accountable Ontinue/customer contacts.
- The verified customer tenant and customer identity administrator.
- The enabled ION capabilities and least-privilege role/scope matrix.
- Environment-specific multi-tenant Portal and API/BFF registrations.
- An authoritative tenant allowlist that APIM and the BFF can query fail-closed.
- The approved Teams B2B Direct Connect/shared-channel relationship and membership plan.
- Customer-environment access approval for any Sentinel, Defender/MDE, Graph, Lighthouse, or Access Package capability.
Steps
- Create the onboarding record linking customer, verified tenant, environment, applications, capabilities, Teams relationship, requested permissions, owners, review date, and offboarding procedure.
- Verify tenancy out of band with the authorized customer contact. Do not activate a tenant based only on a tenant ID supplied by an end user or found in a token.
- Provide the environment-specific admin-consent request through the approved onboarding channel. Include only the reviewed applications and permissions.
- After the customer administrator consents, verify the enterprise applications exist in the expected tenant and that granted permissions exactly match the approved set. Do not capture consent URLs containing transient state or authorization results in logs.
- Create the customer role assignments through declarative automation and Microsoft Graph. Assign user/group roles and application permissions according to their member types; do not use Teams membership as an API role.
- Configure the Teams cross-tenant access/B2B Direct Connect relationship and shared channel under the approved Teams process. Add only approved customer groups/users and Ontinue personas.
- Add the tenant to the authoritative allowlist in a disabled/pending state. Bind it to the customer identifier and enabled capabilities.
- Complete Customer Environment Access for customer security resources. Keep those consents and resource scopes distinct from Portal/API and Teams authorization.
- Deploy APIM/BFF configuration that validates signature, issuer-to-tenant binding, time, audience, caller, role or scope, and active allowlist state. The BFF validates user/customer context; domain services enforce resource and business authorization.
- Run all positive and negative tests, then atomically set the allowlist entry active. Record activation time and deployed revision.
Positive validation
- An approved customer user signs in through the expected Teams shared channel or Portal flow using the customer’s tenant.
- APIM and the BFF accept the exact audience, caller, issuer/tenant, active allowlist entry, and required role or scope.
- The user can access only the onboarded customer context and enabled capability.
- An approved Ontinue persona can access the shared channel and only the explicitly assigned customer context.
- A permitted customer-environment read succeeds when that integration is enabled.
- Telemetry records safe tenant/customer references, route, decision, and correlation ID without tokens.
Negative validation
Verify denial for:
- a valid token from a tenant not on the allowlist or in pending/disabled state;
- customer consent without an active allowlist record;
- issuer not correctly bound to the token tenant;
- wrong application caller, audience, role, or scope;
- a user who is not assigned the required role;
- an approved user requesting another customer’s resource;
- Teams membership without the required API authorization;
- direct access to a domain service using a Portal user token; and
- unapproved write access to customer security resources.
Rollback during onboarding
- Keep or return the tenant allowlist entry to disabled.
- Remove newly created assignments declaratively.
- Remove the Teams channel membership or cross-tenant relationship created by the failed onboarding.
- Ask the customer administrator to revoke unintended consent when required.
- Revoke customer-environment grants through its owning runbook.
- Verify sign-in does not produce product access and retain safe failure evidence.
Offboarding and revocation
- Disable the tenant allowlist entry first and invalidate related authorization caches.
- Verify new Portal/API requests are denied for the customer tenant.
- Remove user/group and application-role assignments through automation.
- Revoke customer consent/service principals with the customer administrator.
- Remove Teams shared-channel membership and cross-tenant relationship as contractually required.
- Revoke Sentinel, Defender/MDE, Graph, Lighthouse, Access Package, and other customer-environment access through Customer Environment Access.
- Revoke sessions or application caches under operational control, stop customer jobs, and retain required audit records.
- Mark the onboarding record offboarded only after each owner supplies revocation evidence and negative tests pass.
Ownership and evidence
The customer onboarding owner coordinates the record and activation. The identity owner manages applications, allowlist, and assignments. The Teams owner manages cross-tenant/shared-channel configuration. Customer Environment Access owners manage security-resource grants. Retain customer approval, consent verification, declarative changes, Teams relationship evidence, positive/negative tests, activation state, review date, and offboarding results. Never retain full tokens or secrets.