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