# Troubleshooting Microsoft configuration

Source: https://developer.nylas.com/docs/provider-guides/microsoft/troubleshooting/

This page describes common issues you might encounter when using Microsoft accounts with Nylas and how to troubleshoot them.

## Gather Exchange logs

Sometimes, Nylas can't sync because of internal errors on the Exchange server. Because we can't access any logging information, it can be difficult to determine why the Exchange server is experiencing these errors.

If you need help troubleshooting your Exchange server and you have a contract with us, you can share more detailed error information from the Exchange server with us.

1. Log in to [Outlook on the web](https://outlook.live.com/).
2. On the menu bar, click the **Settings** symbol.
3. Select **General > Mobile devices** in the left navigation.
4. Find the mobile device that you want to enable logging for an click the **pencil** symbol to view its details.
   ![The Microsoft 365 Outlook interface showing the "Mobile devices" page. A list of mobile devices that have accessed the account is shown.](/_images/microsoft/microsoft-365/mobile-devices.png "Mobile devices")
5. Review the device's details and confirm that the **User agent** is `python-EAS-client 1.0`. This is the name that Nylas uses to connect to your application.
6. Click the **Enable logging** symbol, and click **Save**.
7. Reproduce the issue you experienced. If you have a general sync issue, try sending a test message and let the logger gather data for about 10 minutes.
8. Check your inbox for a message titled "Exchange ActiveSync Mailbox Logs".
9. Download the message and include it as an attachment when you [reach out for support](/docs/support/#contact-nylas-support).

For more information on mobile device options in Outlook, see [Microsoft's official documentation](https://support.microsoft.com/en-us/office/mobile-devices-options-on-outlook-com-6777abf4-0430-4392-bea0-9c169d85b14d).

## Invite Nylas to your Azure app

If you need help troubleshooting your Microsoft OAuth settings and you have a contract with us, you can give the Nylas Support team permissions to access your Azure auth app. This lets the team review your app's settings, give feedback on potential authentication issues, and suggest next steps.

### Invite Nylas Support to your Azure app

1. Log in to the [Microsoft Azure Portal](https://portal.azure.com) as an administrator.
2. Search for **Microsoft Entra ID** and navigate to the resulting page.
3. Select **Manage > Users** in the left navigation.
4. Click **New user**, then **Invite external user**.
5. Add `support@nylas.com` and click **Review + invite**.
   ![The Microsoft Azure Portal showing the "Invite external user" page.](/_images/microsoft/azure/add-guest.png "Add Nylas Support")

### Grant admin permissions to Nylas Support

After you invite the Nylas Support team to your Azure auth app, you can give them administrator permissions. This lets the team access your app's settings for troubleshooting purposes.

1. From the Azure Portal home page, search for **Microsoft Entra ID** and navigate to the resulting page.
2. Click **Manage > Roles and administrators**.
3. Select **Application administrator** from the list of roles.
4. Click **Add assignments**.
5. Search for `support@nylas.com` and click **Add**.
   <img
     src="/_images/microsoft/azure/add-assignment.png"
     alt="The Microsoft Azure Portal showing the Add Assignments pop-up. A list of search results is displayed."
     width="500px"
   ></img>
