Connect your app to Microsoft 365
You can connect your Lovable app to various Microsoft 365 services like Outlook, Teams, or OneDrive. This lets your app work with data from these services using a shared Microsoft account connection.
Anyone building an app that needs to interact with Microsoft 365 services using a specific Microsoft account.
Do this, in order
- 1
Go to 'Connectors' in your Lovable dashboard and choose the Microsoft product you want to connect, like 'Microsoft Outlook' or 'Microsoft Teams'.
This is where you initiate the connection process for a specific Microsoft service.
- 2
Click 'Add connection'.
This starts the setup for a new connection to the chosen Microsoft product.
- 3
Give your connection a clear name, like 'Outlook Prod', in the 'Display name' field.
This name helps you identify this specific connection within Lovable.
- 4
Optionally, expand 'Advanced settings' to review the permissions your app will ask for from Microsoft Graph.
It's good practice to understand what data your app will access; only grant necessary permissions.
- 5
Decide who can use this connection: keep it private, share with specific workspace members, or share with everyone in your workspace.
This controls access to the connection for other people in your Lovable workspace.
- 6
Click 'Connect', then sign in with the Microsoft account you want to use and accept the requested permissions.
This authorizes Lovable to access your Microsoft account data for the chosen service.
Paste this into your project
Hey Lovable, I want to connect my app to Microsoft Outlook. Can you help me set up a connection named 'My Outlook Connection' and link it to my current project?
Words decoded
- Microsoft Graph
- This is the main way that software programs talk to Microsoft 365 services to get or send information, like reading emails or saving files.
- OAuth 2.0
- This is a secure way for you to give one service (like Lovable) permission to access your information on another service (like Microsoft 365) without sharing your password.
- Scopes
- These are specific permissions that an app asks for, like 'read your emails' or 'access your calendar'. You review and approve these during the connection process.
- Connector gateway
- This is Lovable's secure system that handles all the technical details of connecting to external services like Microsoft 365, including keeping your access secure and refreshing permissions automatically.
- Tenant policies
- These are rules set by your organization's Microsoft 365 administrator that can control what apps can connect and what they can do.
- Throttling
- This is when a service like Microsoft Graph temporarily limits how many requests an app can make to prevent it from being overloaded. If an app makes too many requests too quickly, it might be slowed down.
Where people get stuck
- Expecting the connection to act on behalf of each individual app user; it only uses the single Microsoft account you connected.
- Ignoring Microsoft 365 licensing, tenant policies, or conditional access rules, which can prevent the connection from working.
- Exceeding the usage limits for gateway-based connectors, which can cause your app to stop working with Microsoft services.
- Not reconnecting if Microsoft authorization is revoked, which will stop your app from being able to use the Microsoft service.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.