Customer Identity Onboarding
This runbook activates a customer tenant for V3 shell and API access and for ION workload access into the customer tenant through the multi-tenant access applications. Human cross-tenant access (GDAP, Azure Lighthouse, and Teams personas) is completed through Customer Environment Access and kept separate from the consents in this runbook.
Prerequisites
- An approved customer onboarding record and accountable Ontinue and customer contacts.
- The verified customer tenant and the customer identity administrator.
- The enabled ION capabilities and the least-privilege access-application choice for each.
- The environment-specific shell application and ION Platform API app (Application registration).
- An authoritative tenant allowlist that APIM and the BFF query fail-closed.
- The approved Teams relationship and membership plan (Teams workflow).
- Customer-environment access approval for any Sentinel, Defender XDR, Lighthouse, or GDAP capability.
Onboarding flow
Steps
Create the onboarding record
Owner: Customer onboarding owner
Create the record linking customer, verified tenant, environment, enabled
capabilities, chosen access applications, Teams relationship, owners, review
date, and offboarding procedure. Generate a single-use, unguessable state
value for each consent request and store it on the record.
Verify tenancy out of band
Owner: Customer onboarding owner
Confirm the tenant 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.
Choose the access applications
Owner: Customer onboarding owner, approved by the customer
Select the applications from the customer’s capability choice (ADR-0010, ADR-0011):
| Need | Application | Notes |
|---|---|---|
| Read Defender for Endpoint and Graph (default) | azsp-ontinue-ion-access-read-all-prd-01 | Exactly one of the four intent-shape apps is consented |
| Read all plus MDE response actions | azsp-ontinue-ion-access-mde-write-prd-01 | Replaces read-all, not in addition to it |
| Read all plus Graph identity actions | azsp-ontinue-ion-access-graph-write-prd-01 | Replaces read-all |
| Read all plus MDE and Graph actions | azsp-ontinue-ion-access-write-all-prd-01 | Replaces read-all |
| Phishing mailbox analysis (optional) | azsp-ontinue-ion-access-phishing-write-prd-01 | Requires Mailbox-scoped access before processing |
| Customer Azure resources (optional) | azsp-ontinue-ion-access-azure-rbac-prd-01 | Hollow; capabilities come from Customer Azure RBAC |
Confirm each chosen application is federated-only with a FIC for every calling workload’s own UAMI (Workload identity federation).
Send the admin-consent requests
Owner: Customer onboarding owner
Send one consent URL per chosen application through the approved onboarding
channel. Always use the organizations authority, never common and never a
pre-filled tenant ID:
https://login.microsoftonline.com/organizations/adminconsent?client_id={appClientId}&redirect_uri={registeredRedirect}&state={onboardingState}Include only the reviewed applications and their permission lists. The consenting role depends on the application: Graph and Defender application permissions need a Privileged Role Administrator (or Global Administrator); the hollow application needs only an Application Administrator or Cloud Application Administrator.
Verify the consent result
Owner: Platform identity
At the registered redirect, verify that the returned tenant matches the
onboarding record and that state matches the stored value and has not been
used before. Reject and log any mismatch, missing value, or error response;
nothing is activated.
Then 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.
Complete follow-on customer runbooks
Owner: Customer identity admin, Customer Exchange admin, Customer Azure admin
- Phishing application: the customer completes Mailbox-scoped access. ION does not process any mailbox until the customer has validated scope.
- Hollow application: the customer completes Customer Azure RBAC. The service principal alone grants nothing.
Create customer user assignments
Owner: Platform identity
Assign customer users and groups the shell and Ion.* user roles through
declarative automation and Microsoft Graph. Do not use Teams membership as an
API role. Customer users are bound to their own customer context by the BFF
and Signet capability validation (Capabilities).
Configure Teams and human access
Owner: Teams owner and Customer Environment Access owner
Configure the Teams relationship and shared channel under the Teams workflow. Complete GDAP, Lighthouse, and other human cross-tenant access through Customer Environment Access. Keep those grants distinct from the access-application consents.
Add the tenant to the allowlist in pending state
Owner: Platform identity
Add the tenant to the authoritative allowlist as pending, bound to the customer identifier and enabled capabilities. APIM and the BFF validate signature, issuer-to-tenant binding, time, audience, caller, role or capability, and active allowlist state. Domain services enforce resource and business authorization.
Test and activate
Owner: Customer onboarding owner
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 to the shell from the customer’s tenant and reaches only the onboarded customer context and enabled capabilities.
- APIM and the BFF accept the expected audience, issuer and tenant, active allowlist entry, and required role or capability.
- An approved Ontinue persona reaches the shared channel and only the explicitly assigned customer context.
- A non-destructive read through the chosen access application succeeds for the customer tenant using the calling workload’s own UAMI.
- Phishing and Azure RBAC capabilities succeed only after their scope validation evidence is recorded.
- Telemetry records safe tenant and customer references, route, decision, and correlation ID without tokens.
Negative validation
Verify denial for:
- a consent redirect whose
tenantorstatedoes not match the onboarding record, or a reusedstate; - a valid token from a tenant not on the allowlist or in pending or disabled state;
- customer consent without an active allowlist record;
- an issuer not bound to the token tenant;
- wrong application caller, audience, role, or capability;
- an approved user requesting another customer’s resource;
- Teams membership without the required API authorization;
- a write action through the read-all application;
- mailbox processing before scope validation, and an out-of-scope mailbox after it; and
- a hollow-application capability with no customer role assignment.
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 delete unintended enterprise applications or revoke unintended consent.
- Revoke human customer-environment grants through Customer Environment Access.
- 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.
- Disable phishing processing and Azure RBAC capabilities on the onboarding record and stop customer jobs.
- Verify new shell and API requests are denied for the customer tenant.
- Remove user, group, and application-role assignments through automation.
- Have the customer complete the offboarding steps in Mailbox-scoped access and Customer Azure RBAC, then delete each Ontinue enterprise application from their tenant.
- Remove Teams shared-channel membership and cross-tenant relationship as contractually required.
- Revoke GDAP, Lighthouse, and other human access through Customer Environment Access.
- 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. Platform identity manages applications, FICs, the allowlist, and assignments. The Teams owner manages cross-tenant and shared-channel configuration. Customer Environment Access owners manage human grants. Retain customer approval, consent verification (tenant and state match), granted-permission checks, scope validation evidence, declarative changes, positive and negative tests, activation state, review date, and offboarding results. Never retain full tokens or secrets.