Teams Notification Security
ION listens for messages and updates in approved customer collaboration channels so customer responses can be routed to Communication Manager and associated with the relevant incident. The notification service, workload identity, Microsoft Graph permissions, callback, and subscription lifecycle are controlled by Ontinue.
This is an Ontinue platform security boundary. It is separate from the customer-tenant permissions used to access customer Sentinel, Defender, or Graph security data.
Architecture
Notification sequence
The notification flow is:
- A Doppio customer-onboarding event identifies the customer and approved Teams channel.
- The Phoenix subscription service authenticates to Microsoft Graph with its system-assigned managed identity.
- Phoenix creates or reconciles a Graph subscription for the approved channel.
- Microsoft Graph sends channel-message change notifications to the protected ION callback.
- Phoenix validates the subscription context and routes the customer message to Communication Manager.
- Periodic reconciliation renews expiring subscriptions and restores missing subscriptions.
Graph subscription scope
Subscriptions are restricted to channel messages for an approved team and channel:
/teams/{team-id}/channels/{channel-id}/messages
A subscription request contains the callback, approved resource, expiration, client-state secret, and minimum TLS version:
{
"changeType": "created",
"notificationUrl": "https://<ion-callback>/...",
"resource": "/teams/{team-id}/channels/{channel-id}/messages",
"expirationDateTime": "<graph-supported-expiration>",
"clientState": "<subscription-secret>",
"latestSupportedTlsVersion": "v1_2"
}
ION does not use organization-wide chat collection for this flow. Subscription scope remains limited to the configured customer collaboration channel.
Workload identity and permissions
Only the designated ION subscription service communicates with Microsoft Graph for this capability.
- The service uses a system-assigned managed identity.
- The IT team assigns the Graph permissions in the production environment.
- The identity is limited to the Teams subscription and message-processing responsibility.
- No shared Graph credential is embedded in application configuration or source code.
The documented production permissions are:
| Permission | Purpose |
|---|---|
ChannelMessage.Read.All | Read messages from subscribed Teams channels |
GroupMember.Read.All | Resolve membership required by the collaboration flow |
User.Read | Resolve the signed-in or message-associated user context |
User.Read.All | Resolve users required for notification processing |
Microsoft Graph exposes these permission models for the relevant message resources:
| Resource | Delegated permission | Application permission |
|---|---|---|
/teams/{id}/channels/{id}/messages | ChannelMessage.Read.All | ChannelMessage.Read.Group* or ChannelMessage.Read.All |
/chats/{id}/messages | Not supported for the documented flow | Chat.Read.All |
The V2 channel-notification flow uses the channel-message resource rather than the chat-message application permission.
Subscription-management API
Phoenix exposes its subscription operations through an internal API protected by
the Ion.SecurityIncidents.Read scope. The API is not a public or
customer-facing control plane for arbitrary Graph subscription creation.
| Operation | Method and path | Behavior |
|---|---|---|
| List subscriptions | GET /v1/subscriptions | Returns active subscription resources and supports paging, active-state, tenant, and field filtering |
| Ensure customer subscriptions | POST /v1/subscriptions/{customer_id} | Resolves the customer through onboarding, returns existing subscriptions, and creates subscriptions that are missing |
The list operation supports:
- page limit;
- page offset;
- active-state filter;
- tenant filter; and
- field selection.
Both operations define 400, 401, 403, 429, and 500 responses in
addition to a successful 200 response.
Normal subscription creation is driven by customer onboarding and periodic reconciliation. The internal API does not allow an unauthenticated caller or a customer application to select an arbitrary Graph resource.
Subscription lifecycle
Creation
- Receive the controlled customer-onboarded event from Doppio.
- Resolve the customer, tenant, team, and approved channel from onboarding configuration.
- Check for an existing active subscription before creating one.
- Create the subscription for the approved channel-message resource.
- Store the subscription identifier, resource, expiration, customer, and tenant in protected operational state.
Reconciliation and renewal
Phoenix periodically reads customer configuration from Doppio and reconciles it with Microsoft Graph. Reconciliation:
- creates missing subscriptions;
- renews subscriptions before expiration;
- detects duplicate or incorrectly scoped subscriptions;
- identifies subscriptions for disabled or removed channels; and
- reports Graph permission, throttling, and callback failures.
Retirement
When a customer, channel, or communication capability is disabled, the associated Graph subscription and operational state are removed through the controlled offboarding process.
Notification callback controls
The callback applies these controls before a notification enters Communication Manager:
- TLS 1.2 or later;
- Microsoft Graph validation-token handling during subscription establishment;
clientStatecomparison with the stored subscription secret;- known and active subscription ID validation;
- customer, tenant, team, and channel correlation;
- validation that the resource matches the approved channel scope;
- rejection of unknown, expired, or mismatched subscriptions;
- idempotent handling of duplicate notifications; and
- logging that excludes access tokens, secrets, and unnecessary message data.
Microsoft Graph limits
| Limit | Documented value |
|---|---|
| Subscription per application and channel or chat combination | 1 |
| Subscriptions tracking all chats for one user | 10 per user |
| Total subscriptions in one organization | 10,000 |
Phoenix reconciles existing state before creating subscriptions so retries do not
consume duplicate quota. Microsoft Graph 429 responses use bounded backoff and
retry, and subscription counts are monitored before organization-level quota is
exhausted.
Deployment and operational controls
- Production Graph permissions are assigned by the IT team.
- Changes to the subscription service require blocking review by CPE and Architecture and by IT.
- Review confirms that the service remains restricted to the approved channel-message resource.
- Deployment and permission changes are auditable.
- Subscription inventory can be audited monthly or quarterly for customer, tenant, team, channel, resource scope, expiration, identity, and owner.