When you try to connect your Office365 account to Teamleader in order to sync your calendar, you might run into the following error:
The first thing you should check is whether your username (email address) and password actually match. You can easily check this by trying to log into Office365 with the same credentials.
If the login credentials are correct and you receive this error, chances are likely that MFA is enabled on your Office account. MFA is a security measure that requires you to pass on an extra ‘token’ when logging into Office365, but Teamleader hasn’t implemented that yet for this integration. The solution for this problem is what we call ‘App specific passwords’: you basically allow one application or service (Teamleader, in this case) to use a separate password instead of having to enter the MFA token.
Important: the precondition to install the Office365/Exchange calendar, is that your Office licence includes an Exchange server. Without an Exchange server, a calendar sync is impossible. To find out whether your Office licence contains an Exchange server, you can check this table.
Typically, only Professional Office accounts contain an Exchange server. To create app-specific passwords on such an account, the following steps are required:
1. Sign in to the Security info page
2. On that page click the '+ Add method button'
3. Select 'App password' in the dropdown menu.
If you do not see the App password option you may need to head to this page and set the user from 'Enabled' to 'Enforced'.
4. Enter a name for the app password and then select Next
5. Copy the password from the App password page and click on Done
6. Open the app you created the app password for (Office 365 Calendar integration in Teamleader Marketplace), and then paste the app password in the ‘Password’ field.
Your administrator may not allow you to use app passwords. If you don't see App passwords as an option, they're not available in your organisation.
As an Azure admin user, you don’t have the option to create app-specific passwords and you will thus not be able to install the calendar integration if you have MFA enabled.