Microsoft 365
Microsoft 365 connects through Microsoft Graph when a user signs in with their Microsoft work or school account (OAuth 2.0). One account reaches Teams chats and channels, SharePoint sites, OneDrive files, Planner tasks, contacts, users, groups, licenses and sign-in logs.
Install the Microsoft 365 integration
Install Microsoft 365 from Available integrations in each environment you connect accounts from.
Use your own Microsoft 365 OAuth app (optional)
Truto ships a Microsoft 365 OAuth app, so OAuth 2.0 works without any setup. To show your own app on the consent screen instead, register an app in Microsoft Entra ID that allows accounts in any organizational directory, register the redirect URL below, and set the app's Client ID and Client Secret on the installed integration. See Overriding OAuth credentials.
https://api.truto.one/connect/microsoft/callbackIf you use a redirect URL on your own domain, register that URL instead.
By default, Truto asks Microsoft 365 for these scopes. The Connect UI lists them under Permissions required, and you can change them when you override the OAuth credentials.
emailoffline_accessopenidprofilehttps://graph.microsoft.com/Team.ReadBasic.Allhttps://graph.microsoft.com/TeamMember.Read.Allhttps://graph.microsoft.com/User.Readhttps://graph.microsoft.com/ChatMessage.Readhttps://graph.microsoft.com/ChannelMessage.Read.Allhttps://graph.microsoft.com/Channel.ReadBasic.Allhttps://graph.microsoft.com/Chat.Readhttps://graph.microsoft.com/ChannelMessage.Sendhttps://graph.microsoft.com/ChatMessage.Sendhttps://graph.microsoft.com/Tasks.ReadWritehttps://graph.microsoft.com/Sites.Read.Allhttps://graph.microsoft.com/Group.Read.Allhttps://graph.microsoft.com/GroupMember.Read.Allhttps://graph.microsoft.com/Files.Readhttps://graph.microsoft.com/Sites.FullControl.Allhttps://graph.microsoft.com/RoleManagement.Read.Directoryhttps://graph.microsoft.com/LicenseAssignment.Read.Allhttps://graph.microsoft.com/AuditLog.Read.Allhttps://graph.microsoft.com/User.ReadWrite.Allhttps://graph.microsoft.com/Contacts.Read
Enable the same scopes on your app. If your app allows fewer, change the list under Use your own OAuth settings → Scopes on the installed integration's Configuration tab to match.
Connect a Microsoft 365 account
- In Integrated Accounts, click Connect Account.

- Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on Microsoft 365, pick it under Advanced settings → Integration (optional). Click Get connection link.

- Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own Microsoft 365 account. The link works for 7 days, until an account is connected with it.

- Click Get Started if it shows, then select Microsoft 365.
- Sign in with a Microsoft account and allow access. Only work or school accounts can sign in. Several of the scopes, such as
AuditLog.Read.All,Group.Read.AllandSites.FullControl.All, need an administrator's consent, so an admin may have to approve the app first. - Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.