Microsoft 365
Each agent works with its own Microsoft 365 user: its Outlook email, its calendar, and the OneDrive and SharePoint files your organization shares with it.
On this page
With Microsoft 365, each agent has its own user in your directory, like any other colleague: it works with its Outlook email, its calendar, and the OneDrive and SharePoint files your organization shares with it.
The connection has two parts:
| Part | How often | Who |
|---|---|---|
| Your organization's app | Once | A Microsoft Entra admin who can grant admin consent, together with an AgentOS admin |
| Each agent's user and account | Once per agent | A Microsoft 365 admin and an AgentOS admin, with the password of the agent's user |
The app belongs to your organization: only accounts in your directory can use it, and AgentOS never shares credentials between customers. It doesn't use a secret: it identifies itself with a certificate AgentOS creates, whose private key never leaves AgentOS.
1. Open the connection in AgentOS#
In AgentOSIntegrationsConnect a serviceMicrosoft 365Connect
The Register the app in Entra ID page holds your AgentOS redirect address, with Copy address, and the permissions for each service, each with its own copy button. Keep it open.
2. Register the app in Entra ID#
In your organization's Microsoft Entra admin center:
- Register the app: under “App registrations,” New registration, with “Single tenant only” under “Supported account types” and, under “Redirect URI,” the “Web” platform with the AgentOS redirect address. Microsoft's guide: Register an application.
- Add the permissions: under “API permissions,” the delegated “Microsoft Graph” permissions you copied from AgentOS.
- Grant admin consent for your organization: Microsoft doesn't let an agent's account accept those permissions on its own. Microsoft's guide: Grant admin consent.
The permissions AgentOS asks for#
All of them are delegated: the agent acts only as its own user, with what that user can see.
| Service | Permissions | What for |
|---|---|---|
| Identity | openid, profile, email, offline_access, User.Read |
Check that the account is the agent's and renew access without asking for the password again. |
Mail.ReadWrite, Mail.Send |
Search and read email, prepare drafts, send, and reply. | |
| Calendar | Calendars.ReadWrite, Calendars.ReadWrite.Shared |
Its own calendar and the ones shared with it, such as a project's. |
| Documents | Files.ReadWrite.All, Sites.Read.All |
The OneDrive and SharePoint files it has access to, and finding sites. |
3. Register the app in AgentOS and upload its certificate#
- On the page you kept open, fill in App details with the Application (client) ID and the Directory (tenant) ID, from the app's “Overview” page in Entra ID. Click Connect.
- On the app's page, under Registration in Entra ID, click Download certificate.
- In Entra ID, upload it to the app under “Certificates & secrets” › “Certificates” › “Upload certificate.” It shows up with the same Thumbprint AgentOS displays. Microsoft's guide: Add credentials to an app.
- In AgentOS, Test connection checks the app and its certificate with Microsoft, without using any account.
Renew the certificate#
The certificate lasts two years, and the page warns you starting 30 days before it expires. It's renewed without interrupting the agents' work:
- Renew certificate creates the New certificate; download it with Download new certificate.
- Upload it to Entra ID without removing the current one.
- Activate new certificate: AgentOS checks with Microsoft that it works before switching. Then remove the previous one from Entra ID.
4. Create each agent's user#
Each agent has its own Microsoft 365 user, with a license that includes a mailbox (for example, Microsoft 365 Business Basic): without a mailbox, the agent has no email or calendar. It doesn't need any admin role. Microsoft's guides: Add users and Assign licenses.
5. Connect each agent's account#
- On the app's page, under Agent accounts, click Add account: choose the Agent, enter the Account email, and keep the Services it will use (Email, Calendar, and Documents).
- The account shows Not connected. On its row, click Connect and sign in with the agent's user.
- The row changes to Connected. Test checks at any time that it responds and that it's the agent's.
AgentOS rejects the connection if you sign in with an account that isn't the agent's.
6. Put it to work#
In the agent's settings, under Capabilities, turn on Email, Calendar, and Documents, depending on what it will use. What it reads doesn't need approval; what it writes (sending an email, creating an event, sharing a file) waits for your decision.
| What you want | How |
|---|---|
| Have it work on one of your files | Share it with the agent's email, like with anyone else; with edit permission if it will change it. |
| Have it work in SharePoint | It enters the sites its user has access to. For a library or folder, give it the link. |
| Have a project use a folder | Connect it in the project, under Knowledge › Connected sources. |
| Have it act as soon as something arrives | Create a When it happens scheduled task. |