ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Architecture
  2. ION Architecture V3
  3. Well-Architected
  4. V3 Security
  5. V3 Identity
  6. V3 Identity Implementation
  7. Mailbox-Scoped Access

Mailbox-Scoped Access

security
architecturev3

Mailbox-Scoped Access

Use this runbook to let ION read message bodies for phishing analysis in an agreed subset of a customer’s mailboxes, and nowhere else. The phishing access application azsp-ontinue-ion-access-phishing-write-prd-01 (ADR-0010) receives Mail.Read tenant-wide at the Entra layer; the customer then restricts it to the agreed mailboxes with Exchange Online RBAC for Applications. ION does not process any mailbox until the customer has validated the scope.

The workflow view is in Mailbox access workflow.

Prerequisites

  • An active customer onboarding record with the verified customer tenant (Customer onboarding).
  • A signed data-processing or access agreement authorizing ION to read the named mailboxes.
  • The customer uses Exchange Online.
  • An agreed mailbox subset: a tagging convention (recommended) or an Administrative Unit.
  • The phishing application is federated-only, with a FIC for each calling workload’s own UAMI (Workload identity federation).
  • The customer Exchange admin has the ExchangeOnlineManagement PowerShell module.
PowerShell only

The Exchange service principal pointer, the management scope, the application role assignment, and the scope test have no portal UI. They must be configured with Exchange Online PowerShell. Consent, Administrative Units, and mailbox tagging also have portal paths.

Scoping model

The Entra grant alone is not the effective boundary. The Exchange resource-scoped role assignment is. The credential type (federated) does not affect scoping; Exchange keys off the service principal.

Application permissions

The phishing application requests these Microsoft Graph application permissions:

PermissionPurpose
Mail.ReadRead reported message bodies, restricted by the Exchange scope
Mail.ReadBasic.AllRead message metadata without bodies
SecurityAnalyzedMessage.Read.AllRead Defender for Office 365 analyzed messages
SecurityAnalyzedMessage.ReadWrite.AllAct on analyzed messages
ThreatSubmission.Read.AllRead user and admin threat submissions
ThreatSubmission.ReadWrite.AllCreate and update threat submissions

Exchange RBAC for Applications restricts the mailbox-content permission. Assign only Application Mail.Read in Exchange.

Ontinue steps

1

Confirm the phishing application

Owner: Platform identity

Confirm the application is multi-tenant, requests exactly the permissions above, has no password or key credentials, and lists a FIC for each calling workload UAMI within the 20-credential limit.

2

Deliver the onboarding package

Owner: Customer onboarding owner

Deliver through the approved onboarding channel:

  • the organizations admin-consent URL with the onboarding record’s state;
  • the application (client) ID, so the customer can find the enterprise application and its object ID after consent;
  • the requested permissions and their justification;
  • the agreed mailbox subset definition (tag value MSSP-PhishingAnalysis, or the Administrative Unit name); and
  • this runbook’s customer steps and offboarding steps.

Customer steps

3

Consent to the application and grant permissions

Owner: Customer identity admin

A Privileged Role Administrator (or Global Administrator, activated just in time through PIM) opens the admin-consent URL:

https://login.microsoftonline.com/organizations/adminconsent?client_id={appClientId}&redirect_uri={registeredRedirect}&state={onboardingState}

After consent, in Entra ID, Enterprise apps, open the application, review Permissions, and record its Application ID and Object ID for the Exchange steps. ION verifies that the returned tenant and state match the onboarding record before continuing.

4

Connect to Exchange Online

Owner: Customer Exchange admin

Connect as a member of the Organization Management role group, or with the Application RBAC roles delegated through Exchange RBAC:

Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -Organization <customer-tenant-domain>
5

Create the Exchange service principal pointer

Owner: Customer Exchange admin

Use the application ID and the enterprise application’s object ID from step 3:

New-ServicePrincipal `
  -AppId <appClientId> `
  -ObjectId <enterpriseAppObjectId> `
  -DisplayName "Ontinue ION Phishing Analysis"
6

Tag the in-scope mailboxes

Owner: Customer Exchange admin

Set CustomAttribute1 on each agreed mailbox (also possible in the Exchange admin center under Recipients, Mailboxes, Manage custom attributes):

Set-Mailbox -Identity analyst1@contoso.com -CustomAttribute1 "MSSP-PhishingAnalysis"
# repeat for each agreed mailbox

Confirm the attribute is not already used for another purpose in the tenant.

7

Create the management scope

Owner: Customer Exchange admin

New-ManagementScope `
  -Name "Ontinue ION Phishing Mailboxes" `
  -RecipientRestrictionFilter "CustomAttribute1 -eq 'MSSP-PhishingAnalysis'"
8

Assign Application Mail.Read at the scope

Owner: Customer Exchange admin

New-ManagementRoleAssignment `
  -App <enterpriseAppObjectId> `
  -Role "Application Mail.Read" `
  -CustomResourceScope "Ontinue ION Phishing Mailboxes"

Assign only Application Mail.Read. Do not assign Application Mail.ReadWrite, Application Mail.Send, or any unscoped assignment.

9

Validate the scope

Owner: Customer Exchange admin

# Expect InScope = True for an agreed mailbox
Test-ServicePrincipalAuthorization -Identity "Ontinue ION Phishing Analysis" -Resource analyst1@contoso.com | Format-Table

# Expect InScope = False for a mailbox outside the agreed set
Test-ServicePrincipalAuthorization -Identity "Ontinue ION Phishing Analysis" -Resource ceo@contoso.com | Format-Table

Proceed only when the in-scope mailbox returns True and the out-of-scope mailbox returns False. Send the result to the onboarding owner.

Administrative Unit alternative

Where the customer prefers Entra Administrative Units (Entra ID P1 or P2), a Privileged Role Administrator creates the unit and adds the agreed mailbox users, then the Exchange admin scopes the assignment to it instead of steps 6 and 7:

Connect-MgGraph -TenantId <customerTenantId> -Scopes "AdministrativeUnit.ReadWrite.All"
$au = New-MgDirectoryAdministrativeUnit -DisplayName "Ontinue-ION-Phishing-Scope"
New-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $au.Id `
  -OdataId "https://graph.microsoft.com/v1.0/users/<userObjectId>"

New-ManagementRoleAssignment `
  -App <enterpriseAppObjectId> `
  -Role "Application Mail.Read" `
  -RecipientAdministrativeUnitScope <auObjectId>

Validate with Test-ServicePrincipalAuthorization exactly as in step 9.

Application Access Policies are deprecated and are not used for new onboarding.

ION end-to-end validation

10

Prove the boundary from ION

Owner: Service team

From the deployed workload, acquire an app-only Graph token for the customer tenant through its own UAMI and the phishing application, then:

  • GET https://graph.microsoft.com/v1.0/users/{scopedMailbox}/messages/{id} returns the message body; and
  • the same call against an out-of-scope mailbox returns ErrorAccessDenied.

Only after both results are recorded does the onboarding owner enable phishing processing on the onboarding record.

Least-privilege customer roles

Grant these only to the people performing the steps, time-boxed through PIM where possible. Ontinue staff receive no standing customer-tenant admin roles.

TaskMinimum Entra or Exchange roleNotes
Admin-consent the app and grant Graph application permissionsPrivileged Role Administrator (or Global Administrator)Prefer just-in-time activation; avoid standing Global Administrator
Create and manage an Administrative UnitPrivileged Role Administrator, plus an AU-scoped admin for membershipOnly for the Administrative Unit alternative
Service principal pointer, management scope, role assignment, scope testOrganization Management role group, or delegated Application RBAC rolesIn Entra, Exchange Administrator can assign these
Tag mailboxes with CustomAttribute1Exchange Administrator (or Recipient Management)Needed to set custom attributes

Negative validation

Verify denial for each applicable case:

  • an untagged mailbox returns ErrorAccessDenied, and Test-ServicePrincipalAuthorization reports InScope False;
  • a mailbox whose tag is removed becomes inaccessible after Exchange RBAC propagation;
  • Mail.ReadWrite or Mail.Send operations fail;
  • ION does not process any mailbox while the onboarding record lacks validated scope evidence;
  • a workload whose UAMI is not a FIC on the phishing application cannot obtain a token; and
  • consent returned with a tenant or state that does not match the onboarding record stops onboarding.

Offboarding and revocation

1

Disable phishing processing in ION

Owner: Customer onboarding owner

Disable mailbox processing on the onboarding record and stop affected jobs.

2

Remove the Exchange configuration

Owner: Customer Exchange admin

Get-ManagementRoleAssignment -Role "Application Mail.Read" |
  Where-Object { $_.CustomResourceScope -eq "Ontinue ION Phishing Mailboxes" } |
  Remove-ManagementRoleAssignment
Remove-ManagementScope -Identity "Ontinue ION Phishing Mailboxes"
Set-Mailbox -Identity analyst1@contoso.com -CustomAttribute1 $null   # repeat per mailbox
Remove-ServicePrincipal -Identity "Ontinue ION Phishing Analysis"

To narrow scope instead of offboarding, clear CustomAttribute1 on the mailboxes leaving scope, or remove them from the Administrative Unit.

3

Delete the enterprise application

Owner: Customer identity admin

Delete the enterprise application in Entra. This removes the Graph grants and revokes the path for every ION workload.

4

Prove access is gone

Owner: Service team

Confirm a previously readable in-scope message now fails and close the onboarding record with the customer’s confirmation and the negative test result.

Ownership and evidence

Platform identity owns the phishing application and its FICs. The customer identity admin owns consent; the customer Exchange admin owns the pointer, tagging, scope, assignment, and scope test; customer security or risk approves the access. The service team owns end-to-end validation. Retain the access agreement, consent verification, Test-ServicePrincipalAuthorization output, end-to-end in-scope and out-of-scope results, periodic recertification, and offboarding evidence. Never retain message content or tokens as evidence.

Related pages

  • Mailbox access workflow
  • Applications and authorization
  • Workload identity federation
  • Customer onboarding
  • Lifecycle and operations
  • ADR-0010 — Split multi-tenant access permission apps
  • Email body permissions reference

On this page

  • Prerequisites
  • Scoping model
  • Application permissions
  • Ontinue steps
  • Customer steps
  • Administrative Unit alternative
  • ION end-to-end validation
  • Least-privilege customer roles
  • Negative validation
  • Offboarding and revocation
  • Ownership and evidence
  • Related pages
PreviousIdentity Lifecycle and Operations
NextManaged Identity
Edit on GitHubSecurity