Use the following text as a copy/paste template when requesting a Microsoft Entra app registration and delegated permission approval for ContextRelay.
Subject: Request to enable ContextRelay with tenant-managed Microsoft Entra app registration
Hello,
We would like to enable the VS Code extension ContextRelay for a pilot group.
Because the extension uses the built-in VS Code Microsoft authentication provider, we need a tenant-managed Microsoft Entra app registration instead of relying on the default VS Code first-party client.
- Create or reuse a Microsoft Entra app registration for ContextRelay.
- Enable Allow public client flows.
- Add these redirect URIs:
http://localhosthttps://vscode.dev/redirectms-appx-web://Microsoft.AAD.BrokerPlugin/<client-id>msauth.com.microsoft.VSCode.helper://authmsauth.com.microsoft.VSCodeInsiders.helper://authmsauth.com.microsoft.VSCodeExploration.helper://auth
- Add delegated Microsoft Graph permissions for the pilot.
User.ReadMail.Read
Teams search
Chat.ReadChannelMessage.Read.All
SharePoint / OneDrive retrieval
Files.Read.AllSites.Read.All
Chat / transcript / people context
People.Read.AllOnlineMeetingTranscript.Read.All
Connectors
ExternalItem.Read.All
Without a tenant-managed app registration, Microsoft Entra can reject required Graph scopes with AADSTS65002 because the default VS Code first-party client is not preauthorized for all scopes needed by this extension.
Please share:
- Application (client) ID
- Directory (tenant) ID or tenant domain to use
Users will place those values in VS Code settings.
Thank you.
Subject: Approval request for ContextRelay Microsoft Graph delegated permissions
Hello tenant admin team,
I am requesting approval for a pilot deployment of ContextRelay, a VS Code extension that surfaces Microsoft 365 context inside the editor.
The extension uses the built-in VS Code Microsoft authentication provider, but with a tenant-specific Microsoft Entra application registration configured through VS Code auth-provider overrides.
This allows our tenant to explicitly control:
- the app registration used for sign-in
- the delegated Microsoft Graph permissions granted
- tenant consent and rollout scope
Please configure the app registration with:
- Public client flow enabled
- Redirect URIs:
http://localhosthttps://vscode.dev/redirectms-appx-web://Microsoft.AAD.BrokerPlugin/<client-id>msauth.com.microsoft.VSCode.helper://authmsauth.com.microsoft.VSCodeInsiders.helper://authmsauth.com.microsoft.VSCodeExploration.helper://auth
- Delegated Graph permissions based on rollout phase
Phase 1 — Mail-only pilot
User.ReadMail.Read
Phase 2 — Add Teams search
Chat.ReadChannelMessage.Read.All
Phase 3 — Add SharePoint / OneDrive retrieval
Files.Read.AllSites.Read.All
Phase 4 — Optional advanced features
People.Read.AllOnlineMeetingTranscript.Read.AllExternalItem.Read.All
The following permissions commonly require admin consent:
ChannelMessage.Read.AllOnlineMeetingTranscript.Read.AllExternalItem.Read.All- often
Sites.Read.All
After the app registration is created, users will configure VS Code with:
We recommend starting with the smallest permission set (User.Read + Mail.Read) and expanding only after pilot validation.
Please let us know the approved client ID and tenant value to distribute to users.
Thank you.
{ "contextRelay.auth.clientId": "<application-client-id>", "contextRelay.auth.tenantId": "<tenant-id-or-domain>" }