Forum Discussion
MiSum83
Aug 14, 2023Brass Contributor
"Mailbox Import Export" role issue
Hello,
I'll be doing emails migration soon and would need to import PST files. Would like to use the Import tool available in MS Purview.... However, to be able to use Import feature, I need to add "Mailbox Import Export" role in Exchange Online.... I was trying to add that role but getting the error below... I've been trying to do it for 2 days already and still no luck.... The error doesn't give me any idea of what could be wrong...
I have a "global admin" group in "Assigned" tab and I'm logged as an admin that is included in that group.
Any idea what I'm doing wrong here?
- Try adding the role via PowerShell:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management"
Or, you can directly assign it to the user(s) in question:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -user admin1
- Try adding the role via PowerShell:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management"
Or, you can directly assign it to the user(s) in question:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -user admin1- jps-marigold68Copper Contributor
I am seeing the following:
PS C:\Users\jeffs> New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management"
Write-ErrorMessage : |Microsoft.Exchange.Configuration.Tasks.InvalidOperationInDehydratedContextException|The command
you tried to run isn't currently allowed in your organization. To run this command, you first need to run the command:
Enable-OrganizationCustomization.
At C:\Users\jeffs\AppData\Local\Temp\tmpEXO_tfzx3ihw.ckm\tmpEXO_tfzx3ihw.ckm.psm1:1191 char:13
+ Write-ErrorMessage $ErrorObject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-ManagementRoleAssignment], InvalidOperatio...ontextException
+ FullyQualifiedErrorId : [Server=BYAPR15MB3240,RequestId=0ade90e2-a1ae-b16e-352c-8a07f8c0cd11,TimeStamp=Sun, 10 M
ar 2024 00:30:27 GMT],Write-ErrorMessageHowever, this is already enabled:
PS C:\Users\jeffs> Enable-OrganizationCustomization
Write-ErrorMessage : |System.InvalidOperationException|This operation is not required. Organization is already enabled
for customization.
At C:\Users\jeffs\AppData\Local\Temp\tmpEXO_tfzx3ihw.ckm\tmpEXO_tfzx3ihw.ckm.psm1:1191 char:13
+ Write-ErrorMessage $ErrorObject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enable-OrganizationCustomization], InvalidOperationException
+ FullyQualifiedErrorId : [Server=BYAPR15MB3240,RequestId=187e6496-df39-f799-d59a-bb39560a40b1,TimeStamp=Sun, 10 M
ar 2024 00:30:21 GMT],Write-ErrorMessage - MiSum83Brass Contributorthe powershell worked.
1stly - it reported an error mentioning that I'm not allowed to make changes in roles.... So I have removed the global admin account I was using, created new one again... After connecting via powershell, the command ran with no issues and the role has been assigned.
Thanks!
Seems you are not the 1st or 2nd user hit the problem, may raise a ticket to Microsoft to check from the back:
"We couldn't save your changes. Please try again." error and July 2022 - Microsoft Community