An internal Microsoft Dynamics 365 error occurred while synchronizing appointments, contacts, and tasks
This article provides a solution to an error that occurs after selecting Test & Enable Mailbox on a mailbox record in Dynamics 365.
Applies to: Microsoft Dynamics 365
Original KB number: 4346733
After selecting Test & Enable Mailbox on a mailbox record in Dynamics 365, the Appointments, Contacts, and Tasks test result shows as Failure and the following message appears within the Alerts section:
"An internal Microsoft Dynamics 365 error occurred while synchronizing appointments, contacts, and tasks for the mailbox [Mailbox Name]. The mailbox didn't synchronize. The owner of the associated email server profile [Email Server Profile Name] has been notified.
Email Server Error Code: UserPrivilegeError"
If you see this error message and the Email Server Error Code shows as UserPrivilegeError, which indicates the user who owns this mailbox doesn't have sufficient privileges. See PrivilegeDenied error occurs when using Server-Side Synchronization for a list of required privileges.
Verify the Owner of the mailbox record is the same as the User. Example: If the mailbox is a User mailbox for Paul Cannon, verify the Owner value within the mailbox record for Paul Cannon shows as Paul Cannon. If it is some other user, that user may not have access to this user's mailbox.
To fix this issue, follow these steps:
- As a user with the System Administrator role, open the mailbox record in Dynamics 365.
The alert includes a link to the mailbox record.
- Verify the Owner field on the mailbox form is populated with the name of the User. If some other user is listed, change it to be the same as this user.
- Select the link within the Owner field to open the User record for the owning user.
- Select Manage Roles to see which security role(s) is assigned to this user.
- Navigate to Settings, select Security, and then select Security Roles.
- Open the roles found in step 4. See PrivilegeDenied error occurs when using Server-Side Synchronization for a list of required privileges and verify the user's security role contains these privileges.
- After verifying the user is the owner of their mailbox record and their security role contains the required privileges, select the Test & Enable Mailbox button within their mailbox record again. If the test doesn't result in Success, review the message that appears within the Alerts section.