Skip to content
CloudOps
Newsletter
All prompts
AI for Microsoft Teams Difficulty: Advanced ClaudeChatGPT

Teams Incident Channel Compliance & Retention Prompt

Design retention policies, sensitivity labels, eDiscovery readiness, and access controls for Microsoft Teams incident channels in regulated environments.

Target user
Security / compliance engineers and IT for regulated industries
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a senior compliance + IT engineer who has implemented Microsoft Purview retention policies, sensitivity labels, and eDiscovery for Teams in regulated industries (financial services, healthcare, government).

I will provide:
- Compliance regime(s) — SOX, HIPAA, PCI, FedRAMP, GDPR, FINRA
- Existing retention policy in the tenant
- Sensitivity label scheme
- Auditor expectations
- Incident channel patterns (auto-created per incident, long-lived per-team, mixed)

Your job:

1. **Map the data flow** — for an incident channel, what data lives where:
   - **Chat messages** — Exchange mailbox (Group mailbox) — Purview policies apply here
   - **Files shared** — SharePoint site associated with the underlying M365 Group — separate Purview scope
   - **Recordings** — OneDrive of the meeting organizer or the Channel SharePoint (depends on settings)
   - **Tabs** — Planner / Loop / Wiki — separate compliance scopes
   - **Adaptive Cards from bots** — chat messages, but actions and data may flow to external services

   Identify each location for policy coverage.

2. **Retention policy design**:
   - **Compliance minimum** — e.g. 7y SOX, 6y HIPAA, 5y PCI
   - **Business need** — typically 1y for postmortem reference, then archive
   - Apply via Purview adaptive scopes targeting the incident-channel naming pattern
   - Show: policy scope, included locations, retention period, action at end (delete / review)

3. **Sensitivity labels** — recommend labels:
   - **Confidential — Incident** — encrypts content, restricts to incident-response group
   - **Public — Postmortem** — published postmortems readable broadly
   Apply via auto-labeling rules keyed on channel pattern or content classifiers.

4. **Access controls**:
   - Private channels for sensitive incidents (PII, security incidents)
   - Guest access policy — block, time-bound, or specific scenarios only
   - Conditional Access for elevated-risk incidents
   - Just-in-Time access via Privileged Identity Management for retroactive review

5. **eDiscovery readiness**:
   - Place a Litigation Hold on the Group mailbox + SharePoint site when an incident triggers regulatory exposure
   - Document the Custodian + Source + Hold criteria
   - Run Content Search to validate scope before formal hold
   - Track holds in a SharePoint list with owner + reason + review date

6. **Audit log retention** — Unified Audit Log retention is 90d default, extendable to 1y or 10y with premium licensing. Ensure logs cover: channel creation, membership change, message deletion, file download, label change.

7. **Microsoft Information Protection (MIP) / Purview integration** — Data Loss Prevention rules for incident channels (block credit card numbers being pasted, alert on credential patterns, redact in transit if needed).

8. **Lifecycle automation**:
   - On incident creation: apply label, apply DLP rule, set retention policy via group
   - On resolution: post archive notice
   - On retention end: confirm deletion or review

9. **Auditor-ready evidence pack** — what you should be able to show on request:
   - Sample retention policy with scope
   - Audit log query results for a sample incident
   - Sample eDiscovery case
   - Membership audit for a private channel
   - DLP incident review

Output as: (a) data-flow inventory, (b) retention policy spec, (c) sensitivity label spec + auto-labeling rules, (d) eDiscovery runbook for an incident, (e) DLP rule set, (f) audit-evidence checklist mapped to your regime(s).

Bias toward: explicit defaults, evidence trails for auditors, least-privilege access without blocking real incident response.
Newsletter

Free: the DevOps AI Incident-Triage Cheat Sheet

Subscribe and we’ll send you the one-page cheat sheet — plus weekly AI prompts, automation ideas, and tool reviews for infrastructure engineers. One email a week. No spam, unsubscribe anytime.

  • AI Incident-Triage Cheat Sheet (PDF)
  • Access to 1,603 DevOps AI prompts
  • One practical workflow email per week