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
description: Provides a solution to an error that occurs when you select the Approve Email button on a mailbox record in Microsoft Dynamics 365.
3
+
description: Provides a solution to an error that occurs when you select Approve Email on a mailbox record in Microsoft Dynamics 365.
4
4
ms.reviewer:
5
-
ms.topic: troubleshooting
6
-
ms.date: 11/19/2024
5
+
ms.date: 12/31/2024
7
6
ms.custom: sap:Email and Exchange Synchronization
8
7
---
9
-
# "A failure occurred in CrmSecurity" error occurs when attempting to approve the email address of a mailbox record in Microsoft Dynamics 365
8
+
# "A failure occurred in CrmSecurity" error when approving the email address of a mailbox record in Dynamics 365
10
9
11
-
This article provides a solution to an error that occurs when you select the **Approve Email** button on a mailbox record in Microsoft Dynamics 365.
10
+
This article provides a solution to an error that occurs when you manually approve a mailbox in Microsoft Dynamics 365.
12
11
13
12
_Applies to:_ Microsoft Dynamics 365
14
13
_Original KB number:_ 4510938
15
14
16
15
## Symptoms
17
16
18
-
When you select the **Approve Email** button on a mailbox record, you receive the following error:
17
+
When you select the [Approve Email](/power-platform/admin/connect-exchange-online#approve-a-mailbox-manually) button on a mailbox record in Dynamics 365, you receive the following error message:
19
18
20
-
> "Error
21
-
A failure occurred in CrmSecurity. If you contact support, please provide the technical details."
19
+
> A failure occurred in CrmSecurity. If you contact support, please provide the technical details.
22
20
23
21
## Cause
24
22
25
-
This error occurs if you try to approve the email as a user that doesn't have both of the following required roles:
23
+
This error occurs when you try to approve the email as a user who doesn't have both of the following required roles:
26
24
27
-
- Global Administrator or Exchange Administrator in Office 365
25
+
- Global Administrator or Exchange Administrator in Microsoft 365
28
26
- System Administrator security role in Dynamics 365
29
27
30
28
## Resolution
31
29
32
-
By default, Dynamics 365 requires that the approval of an email address in Dynamics 365 is performed by someone with both of the required roles mentioned in the [Cause](#cause) section. The System Administrator role in Dynamics 365 or the Dynamics 365 service administrator role in Office 365 aren't sufficient for doing this action. For more information including how this requirement can be disabled, see [Changes to Mailbox approval in Dynamics 365](https://support.microsoft.com/help/4506139).
30
+
By default, Dynamics 365 requires that only users with both of the mentioned roles can approve an email address. The System Administrator role in Dynamics 365 or the Dynamics 365 service administrator role in Microsoft 365 alone isn't sufficient for this action.
31
+
32
+
For more information and instructions on how to disable this requirement, see [Remove the requirement to approve mailboxes](/power-platform/admin/connect-exchange-online#remove-the-requirement-to-approve-mailboxes).
33
33
34
34
## More information
35
35
36
-
If you select the **Download Log File** button, you see details like the following example:
36
+
If you select the **Download Log File** button in the error message, you see details like the following example:
37
37
38
-
> "Unhandled Exception: System.ServiceModel.FaultException'1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The Queue: a5efd992-dbc6-48af-ad61-09e0258edb68 email `[email protected]` doesn't match with UPN. User 39ff663e-a75a-e811-a986-000d3a3672b5 should be a global administrator to approve mailbox in organization \<organization>.
38
+
```output
39
+
Unhandled Exception: System.ServiceModel.FaultException'1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=<Token ID>]]: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The Queue: <Queue ID> email `[email protected]` doesn't match with UPN. User <User ID> should be a global administrator to approve mailbox in organization \<organization>.
39
40
at Microsoft.Crm.Dialogs.ApproveEmailAddressDialogPage.ConfigureForm()
40
41
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
41
42
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
@@ -51,11 +52,11 @@ at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
51
52
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
52
53
completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number
\<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type \'System.Web.HttpUnhandledException\' was thrown. ---> Microsoft.Crm.CrmException: \*\*The Queue: a5efd992-dbc6-48af-ad61-09e0258edb68 email `[email protected]` doesn't match with UPN. User 39ff663e-a75a-e811-a986-000d3a3672b5 should be a global administrator to approve mailbox in organization \<organization>\*\*.
<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The Queue: <Queue ID> email `[email protected]` doesn't match with UPN. User <User ID> should be a global administrator to approve mailbox in organization <organization>.
59
60
at Microsoft.Crm.Dialogs.ApproveEmailAddressDialogPage.ConfigureForm()
60
61
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
61
62
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
@@ -70,21 +71,22 @@ for administrators or support: #3A5E4FEADetail:
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
72
73
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3A5E4FEA</Message>
\<Message>The Queue: a5efd992-dbc6-48af-ad61-09e0258edb68 email `[email protected]` doesn't match with UPN. User 39ff663e-a75a-e811-a986-000d3a3672b5 should be a global administrator to approve mailbox in organization \<organization>.\</Message>
<Message>The Queue: <Queue ID> email `[email protected]` doesn't match with UPN. User <User ID> should be a global administrator to approve mailbox in organization <organization>.\</Message>
0 commit comments