Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
md 39 lines 1.87 KB
Rendered Raw
1 ---
2 type: "reference"
3 title: "Microsoft OAuth scopes and tenant consent"
4 description: "Shared OAuth scope and tenant-consent guidance for Microsoft toolkits."
5 category: "auth-config"
6 visibility: "public"
7 timestamp: "2026-08-17T00:00:00Z"
8 tags:
9 - "microsoft"
10 - "oauth"
11 ---
12 # Microsoft OAuth scopes and tenant consent
13
14 ## Request `offline_access` when a delegated connection needs refresh tokens
15
16 Microsoft's v2 OAuth endpoint requires an explicit `offline_access` request to
17 return refresh tokens. Composio's standard Microsoft delegated OAuth scope sets
18 include it. For a customer-owned Microsoft app, include `offline_access` in the
19 app and Composio auth-config scopes before creating a new connection.
20
21 Microsoft documents this behavior in
22 [Scopes and permissions in the Microsoft identity platform](https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc#the-offline_access-scope).
23
24 ## Some Microsoft tenant policies and permissions require administrator consent
25
26 A work or school account can show **Needs Admin Approval** or **Admin approval
27 required** when the tenant prevents users from approving the app or when the
28 requested permission is administrator-restricted. A tenant administrator must
29 approve the selected Composio-managed app or the customer's own app and its
30 requested permissions. The affected user should then start a fresh connection.
31
32 Adding a permission to an Entra app registration does not itself grant tenant
33 consent. Microsoft explains the distinction in its
34 [permissions and consent overview](https://learn.microsoft.com/en-us/entra/identity-platform/permissions-consent-overview).
35
36 This guidance applies across Microsoft toolkits that use delegated Microsoft
37 OAuth, including Outlook, Microsoft Teams, OneDrive, OneNote, Excel, Power BI,
38 and Dynamics 365. SharePoint REST and app-only/S2S flows may
39 also require resource-specific permissions and administrator consent.