You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/power-platform/dataverse/email-exchange-synchronization/exception-when-using-server-side-sync.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: 401 Unauthorized exception when using server-side synchronization
3
3
description: Provides a solution to an error that occurs when you use server-side synchronization in Dynamics 365.
4
4
ms.reviewer: dmartens
5
-
ms.date: 12/03/2024
5
+
ms.date: 12/09/2024
6
6
ms.custom: sap:Email and Exchange Synchronization
7
7
---
8
8
# 401 Unauthorized exception occurs when using server-side synchronization in Microsoft Dynamics 365
@@ -13,7 +13,7 @@ _Applies to:_ Microsoft Dynamics 365
13
13
_Original KB number:_ 3212785
14
14
15
15
> [!IMPORTANT]
16
-
> If you are using Exchange Online and this error occurs after October 1st, 2022, this may be caused by Basic authentication being disabled. For more information about how to temporarily enable Basic authentication again for a limited time, see [Use of Basic authentication with Exchange Online](/power-platform/admin/use-basic-authentication-exchange-online).
16
+
> If you use Exchange Online and this error occurs after October 1st, 2022, this may be caused by Basic authentication being disabled. For more information about how to temporarily enable Basic authentication again for a limited time, see [Use of Basic authentication with Exchange Online](/power-platform/admin/use-basic-authentication-exchange-online).
17
17
18
18
## Symptoms
19
19
@@ -31,30 +31,30 @@ The message also includes the following error code:
31
31
32
32
## Cause 1: The e-mail address in Dynamics 365 doesn't match the one in Exchange
33
33
34
-
To solve this issue, verify the e-mail address of the mailbox record in Dynamics 365 matches the e-mail address in Exchange. The error includes a link to the mailbox record in Dynamics 365. You can use this link to quickly verify the **Email Address** field.
34
+
To solve this issue, verify the email address of the mailbox record in Dynamics 365 matches the one in Exchange. The error includes a link to the mailbox record in Dynamics 365. You can use this link to quickly verify the **Email Address** field.
35
35
36
36
## Cause 2: Using an Exchange Server (Hybrid) profile with a mailbox in Exchange Online
37
37
38
-
If you're using Dynamics 365 (online) with Exchange Online, make sure you're using an [Exchange Online email server profile](/power-platform/admin/connect-exchange-online#create-an-email-server-profile-for-exchange-online). Only use an Exchange Server (Hybrid) profile for users that have mailboxes in Exchange on-premises. For more information, see [Connect to Exchange Server (on-premises)](/power-platform/admin/connect-exchange-server-on-premises).
38
+
If you use Dynamics 365 (online) with Exchange Online, make sure you use an [Exchange Online email server profile](/power-platform/admin/connect-exchange-online#create-an-email-server-profile-for-exchange-online). Only use an Exchange Server (Hybrid) profile for users that have mailboxes in Exchange on-premises. For more information, see [Connect to Exchange Server (on-premises)](/power-platform/admin/connect-exchange-server-on-premises).
39
39
40
40
## Cause 3: The user doesn't have an Exchange Online license
41
41
42
-
If you're using Dynamics 365 with Exchange Online, verify the user has an Exchange Online license. For more information about assigning licenses in Microsoft 365, see [Add users and assign licenses at the same time](/microsoft-365/admin/add-users/add-users).
42
+
If you use Dynamics 365 with Exchange Online, verify the user has an Exchange Online license. For more information about assigning licenses in Microsoft 365, see [Add users and assign licenses at the same time](/microsoft-365/admin/add-users/add-users).
43
43
44
44
## Cause 4: Dynamics 365 and Exchange Online aren't in the same Microsoft 365 tenant
45
45
46
-
If you're using Dynamics 365 (online) with Exchange Online, verify Dynamics 365 (online) and Exchange Online are in the same Microsoft 365 account or tenant.
46
+
If you use Dynamics 365 (online) with Exchange Online, verify Dynamics 365 (online) and Exchange Online are in the same Microsoft 365 account or tenant.
47
47
48
48
## Cause 5: Basic authentication isn't enabled for EWS (Exchange Web Services)
49
49
50
-
If you're using Dynamics 365 (online) with Exchange on-premises, verify Basic authentication is enabled for [EWS (Exchange Web Services)](/exchange/client-developer/exchange-web-services/start-using-web-services-in-exchange). For more information, see the Prerequisites section of [Connect Dynamics 365 (online) to Exchange Server (on-premises)](/previous-versions/dynamicscrm-2016/administering-dynamics-365/mt622059(v=crm.8)#prerequisites).
50
+
If you use Dynamics 365 (online) with Exchange on-premises, verify Basic authentication is enabled for [EWS (Exchange Web Services)](/exchange/client-developer/exchange-web-services/start-using-web-services-in-exchange). For more information, see the Prerequisites section of [Connect Dynamics 365 (online) to Exchange Server (on-premises)](/previous-versions/dynamicscrm-2016/administering-dynamics-365/mt622059(v=crm.8)#prerequisites).
51
51
52
-
## Cause 6: A deleted user or mailbox was recreated with the same email address
52
+
## Cause 6: A deleted user or mailbox is re-created with the same email address
53
53
54
-
When you try to test and enable the mailbox, you might see that the **NoUserFoundWithGivenClaims** message is included as part of an error level alert. You might also see an alert where the details section shows, "User does not exist in tenant with id '\<_User ID_>'".
54
+
When you try to test and enable the mailbox, you might see that the **NoUserFoundWithGivenClaims** message is included as a part of an error level alert. You might also see a "User does not exist in tenant with id '\<User ID\>'" message in the **Details** section of the alert.
55
55
56
-
To solve this issue,
56
+
To solve this issue:
57
57
58
-
1. Make sure that the previously existing user or mailbox was permanently deleted. By default, a user who is deleted from Microsoft Entra ID can have their account restored within 30 days. For more information, see [Permanently delete a user](/azure/active-directory/fundamentals/active-directory-users-restore#permanently-delete-a-user).
58
+
1. Make sure that the previously existing user or mailbox is permanently deleted. By default, a user who is deleted from Microsoft Entra ID can have their account restored within 30 days. For more information, see [Permanently delete a user](/azure/active-directory/fundamentals/active-directory-users-restore#permanently-delete-a-user).
59
59
60
60
1. After verifying that no user or mailbox uses the same email address, you can try to test and enable the mailbox again. If you still receive the error message, the issue can be caused by the result of caching. It might take up to 72 hours for the cache to be cleared. If you can't wait for 72 hours, contact [Microsoft Support](https://support.microsoft.com).
0 commit comments