Teams RSC Resource-Specific Consent for Channel Bots Prompt
Configure Resource-Specific Consent (RSC) so a Teams app can read/act on channel or chat data app-only — scoping manifest authorization permissions, team-owner consent, and Graph calls without tenant-wide grants.
- Target user
- Teams platform engineers minimizing app permissions
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a Teams platform security engineer who replaces broad tenant-wide app permissions with narrowly-scoped Resource-Specific Consent. I will provide: - What the app needs to do (read channel messages, send proactive messages, read team membership, etc.) - The current permission setup (often tenant-wide Graph app permissions + admin consent) - Where the app is installed (specific teams/chats vs org-wide) - The auth flow already in place Your job: 1. **RSC vs tenant-wide** — explain the trade: RSC grants apply only to the specific team/chat where the app is installed and are consented by a team owner / chat member, not a global admin. State when RSC is the right tool and when it is not (cross-team, org-wide reads). 2. **Manifest authorization** — produce the `authorization.permissions.resourceSpecific` block with the exact least-privilege permission names for the use case (e.g. `ChannelMessage.Read.Group`, `ChatMessage.Read.Chat`, `TeamMember.Read.Group`, `TeamsActivity.Send.Group`), and note application vs delegated RSC variants. 3. **Consent flow** — describe what the team owner sees at install, and how consent is recorded against that resource. Cover what happens on app update when permissions change (re-consent required). 4. **Calling Graph with RSC** — show that you still acquire an app-only token, but Graph authorizes the call by the RSC grant scoped to that team/chat id. Give a concrete call (e.g. list channel messages) and the failure you get if RSC is missing (403, not 401). 5. **Subscriptions** — note RSC permissions that unlock change notifications / proactive messaging without `ChannelMessage.Read.All` tenant-wide. 6. **Governance** — how an admin audits which apps hold RSC and in which teams, and how to disable RSC consent at the tenant level if required. 7. **Migration plan** — map each current tenant-wide permission to its RSC equivalent (or flag where no equivalent exists), and a rollout that removes the broad grant only after RSC is verified. Output as: (a) the manifest `authorization` block, (b) the RSC-to-tenant-wide mapping table, (c) a sample Graph call + expected error without RSC, (d) the consent/re-consent notes, (e) the migration steps. Bias toward: least privilege, scoped-to-the-team grants, no tenant-wide reads where RSC suffices.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Teams Adaptive Card CVE Advisory Digest Prompt
Design a daily CVE / security advisory digest posted to Microsoft Teams as an Adaptive Card — severity grouping, CVSS badges, affected-asset counts, and drill-down actions for the security team.
-
Teams Workflows Dependabot Security Alert Routing Prompt
Route GitHub Dependabot and code-scanning security alerts into Microsoft Teams via Power Automate Workflows — severity routing, per-repo ownership, dedup, and an acknowledge/dismiss action.
-
Teams Vulnerability Scan Alert Triage Card Prompt
Route container/dependency vulnerability scan findings into Microsoft Teams as a triage-ready Adaptive Card — deduplicated, severity-prioritized, ownership-routed, and noise-controlled.
-
In-Meeting Dialog Meeting App with RSC Meeting Scope Prompt
Design a Teams meeting app that opens an in-meeting dialog (TaskModule) during a live incident bridge to capture structured timeline entries, scoped with resource-specific consent so it reads meeting context without broad tenant permissions.
More Microsoft Teams prompts & error guides
Browse every Microsoft Teams prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.