docs/integrations/microsoft-365.md
OAuth integration requires an application registered in the Azure portal.
sops tool.# Microsoft 365 OAuth integration
ms365_integration_client_id: [CLIENT ID]
ms365_integration_client_secret: [CLIENT SECRET]
And MPN ID is required for OAuth to work, and involves uploaded documents proving ownership of the domain, such as domain registraiton recrods. Opening a support ticket might be required if the request to add the MPN ID is initially denied.
During OAuth, end-users will have to select Graph API scopes to authorize Enso to use. Any such scope must be added to the app registration.
For integration tests, you must grant "admin consent" to API permissions, since the oauth process will be automated and the test user cannot grant consent via the browser.
(Before doing this step, first do "Adding API Permissions", above.)
OneDrive tests require an existing credential at 'enso://Users/CloudTests./Microsoft365_ci_test_credential'. This credential must be created by a Microsoft OneDrive user that has an SPO license.