When you connect your Office 365 inbox or calendar to HubSpot, you might encounter an error during the connection process. Learn about the root cause of these common errors and how to troubleshoot them.
If you're an IT resource, note that HubSpot uses Graph API for Microsoft 365 to integrate with your inbox. For the Office 365 calendar, HubSpot uses the Outlook REST API. HubSpot requires the following scopes in order to connect:
Mail.ReadWrite
Mail.Send
Calendars.Read
Calendars.ReadWrite
offline_access
email
openid
This error means that your Office 365 account does not have a mailbox for the email address you're trying to connect. For example, you may have an Office 365 account that you use for other products such as Word or Excel, but your email is hosted with a different email provider. You will need to choose the correct provider to connect your calendar or email.
If you see that HubSpot is automatically connecting to the wrong email address, make sure you haven't opted to stay signed into your Office 365 account.
To resolve the issue:
You'll see this error in your HubSpot account as OFFICE_ERROR_REST_API_NOT_ENABLED_FOR_COMPONENT_SHARED_MAILBOX. This error can be caused in one of two ways:
If you see this error, you will need to connect using a different email provider. For example, you could connect via IMAP or via Exchange if you're running an Exchange server.
You may see outlook_[string_of_characters]@outlook.com display instead of your email address when you connect an Office 365 inbox. This is because HubSpot does not support using a non Microsoft domain primary alias. This can causes issues with sending or syncing your emails from your connected inbox. Learn more about this issue and Microsoft's recommended solution.
If you see an "Interaction required" error when connecting your Office 365 inbox, it means your user needs access to the HubSpot Sales application in Azure AD. You may need to work with your email administrator to get access. Learn more assigning users to an application in Azure AD.