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 a...
- Aug 15, 2023Try 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
VasilMichev
Aug 15, 2023MVP
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
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-marigold68
Mar 10, 2024Copper 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-ErrorMessage
However, 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