Microsoft Exchange
Microsoft Exchange is a messaging and collaboration platform that provides email, calendar, contact management, and task-sharing features for businesses. It supports seamless communication and organization across teams with robust security, scalability, and integration capabilities.
In order to integrate Microsoft Exchange with Relyance AI you will need to follow an OAuth2 flow.
In the Relyance AI application:
- Login to your Relyance account.
- Navigate to the Settings Menu in the bottom left-hand side.
- Select Integrations.
- Click on the Vendor Integration tab.
- Find the Microsoft Exchange integration card and click it to open its connections.
- Under Authentication Method, choose Oauth2 / App Token.
- Additional Features:
- Use the Asset Discovery checkbox if you wish to run this integration with the Asset Intelligence Module.
- Select the Enable Data Inspection checkbox if you wish Relyance also to inspect the data. For more information on Relyance features, please refer to this help center article: here.
- Click Authenticate.
- This will bring you to the Microsoft site to authorize Relyance. You may be asked to sign in. Once authorized, you'll be redirected back to Relyance.
- At this point, you should see the following result on the Vendor Integrations page:


- Congratulations, you are now connected to Microsoft Exchange.
Verify the connection is really working
The permissions are the .Shared variants — Mail.Read.Shared,
Calendars.Read.Shared, Contacts.Read.Shared — plus User.Read.All.
- Connected but nothing discovered is admin consent, which is granted per permission and issues a valid token regardless. Check each entry reads "Granted for <organization>".
- Some mailboxes return nothing. The
.Sharedpermissions read what has been shared with the app's identity. A mailbox that has not been shared, or is excluded by an Exchange application access policy, produces no results and no error — that policy is the usual reason a subset of mailboxes is silently invisible. - A connection that worked and then stopped is the client secret expiring; record the date in the connection's Credentials expiry field.
Manage this integration with Terraform
Connections for this integration can be managed as code with the Relyance Terraform provider. Non-secret fields go in auth.params; secret fields go in auth.secrets_wo, which is write-only — never stored in Terraform state. Rotate secrets by bumping auth.secrets_wo_version.
The OAuth (browser authorization) method uses a browser authorization flow, so the connection is created in the Relyance app. Manage it in Terraform afterwards by importing it (terraform import relyance_integration_connection.example microsoft_exchange/<connection_id>) or reading it with the relyance_integration_connection data source.