Outlook Integration Configuration¶
Connecting requires registering an "Enterprise Application" in the Microsoft Azure environment.
1. Application Registration in Azure Portal¶
- Log in to the Azure Portal.
- Go to Azure Active Directory (or Microsoft Entra ID).
- Select App registrations > New registration from the left menu.
- Name: Enter a name (e.g., "AutoCRM Integration").
- Supported account types: Choose as needed:
- Accounts in this organizational directory only (Single tenant) – for your company only.
- Accounts in any organizational directory (Multitenant) – if you have multiple domains.
- Redirect URI: Select Web platform and enter the URL from CRM administration (Integration > Outlook).
- Example:
https://crm.yourcompany.com/api/v1/Outlook/redirect
- Example:
- Click Register.
2. Creating Client Secret¶
- In the details of the newly created application in Azure, go to Certificates & secrets.
- Click New client secret.
- Enter a description and expiration (recommended 24 months).
- IMPORTANT: Immediately copy the Value of the secret. It will not be visible later.
3. Setting Permissions (API Permissions)¶
- Go to API Permissions > Add a permission > Microsoft Graph.
- Select Delegated permissions.
- Search for and check the following permissions:
User.ReadCalendars.ReadWriteContacts.ReadWriteMail.ReadWriteMail.Sendoffline_access
- Click Add permissions.
4. Configuration in AutoCRM¶
- In AutoCRM administration, go to Integrations > Outlook.
- Fill in:
- Client ID: (Application (client) ID from the application overview in Azure).
- Client Secret: (The value you copied in step 2).
- Tenant: Select the account type (common, organizations, consumers) matching the Azure settings.
- Save settings.
5. Verify the job¶
- In Admin → Scheduled Jobs ensure
SyncOutlookCalendarexists and is Active with the schedule*/10 * * * *. - If missing, create a job with the same name/class and 10-minute schedule or reinstall the module.
Recommendations¶
- Grant Admin consent in Azure AD for the requested permissions; otherwise users will be prompted for admin approval during connection.
- When rotating the Client Secret, update the value in AutoCRM so users can re-authorize without errors.