Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Email Server Error Code: Crm.80042f09.UserNotAssignedRoles


View products that this article applies to.

Symptom

When you click the Test & Enable Mailbox button on a mailbox record in Dynamics 365, the following alert is logged and Appointment, Contacts, and Tasks synchronization fails:

"Appointments, contacts, and tasks can't be synchronized for the mailbox <Mailbox Name> because the mailbox user doesn't have sufficient permissions on this mailbox.
Email Server Error Code: Crm.80042f09.UserNotAssignedRoles"

If you click to view the Details, the following additional details are shown:

T:1738ActivityId: 3594490d-96d3-493b-861e-023b016a6050>Exception : Unhandled Exception: Microsoft.Crm.Asynchronous.EmailConnector.ExchangeSyncException: Failed to retrieve the sync state : Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::RetrievePrivilegeForUser failed - no roles are assigned to user. Returned hr = -2147209463, User: <GUID>Detail: 3594490d-96d3-493b-861e-023b016a6050 -2147209463 SecLib::RetrievePrivilegeForUser failed - no roles are assigned to user. Returned hr = -2147209463, User: <GUID>...

↑ Back to the top


Cause

A Dynamics 365 security role is not assigned to the user.

↑ Back to the top


Resolution

Assign a Dynamics 365 security role to the user.  For step by instructions for how to assign a security role, click here


↑ Back to the top


Keywords: Crm.80042f09.UserNotAssignedRoles, 80042f09, UserNotAssignedRoles, -2147209463, RetrievePrivilegeForUser failed

↑ Back to the top

Article Info
Article ID : 4014646
Revision : 1
Created on : 3/3/2017
Published on : 3/3/2017
Exists online : False
Views : 346