Start a conversation

Setting Permissions for Importing Emails from Microsoft Exchange via Import/Export Tool

Overview

Specific permissions are required for the Microsoft Exchange server to export items into GFI Archiver. This article provides steps to setting the permissions on various versions of Exchange. 

Note: If Mailbox Folder Structure Retrieval feature is already in use, simply configure it by assigning the user the required access option.

 

Solution

Follow these step to set permissions depending on the application in use:

The user mailboxes which are to be exported require to be configured to be accessed via MAPI-Messaging Application Programming Interface (this is allowed by default). This is required even if EWS is being used as the protocol to access Microsoft Exchange server.

This setting can be checked or configured on a per user level via: Exchange Management Console > Recipient Configuration > Mailbox > [User Account Properties] > Mailbox Features > MAPI (must be enabled).

 

Microsoft Exchange Server 2019, 2016, 2013 or 2010 (Using EWS)

  1. Open the Microsoft Exchange Management Shell on the Microsoft Exchange Server.
  2. Run the following PowerShell cmdlet:
    New-ManagementScope -name "MAUMPolling" -recipientrestrictionfilter {recipienttype -eq "UserMailbox"}
  3. On completion, run the following PowerShell cmdlet adding in the email of the user needing the permissions to export:
    New-ManagementRoleAssignment -name "MAExportEmails" -role:applicationimpersonation -user "administrator@domain.com" -customrecipientwritescope "MAUMpolling"

 

Microsoft Exchange Server 2007 SP1 SP2 SP3 (using EWS)

  1. Open the Microsoft Exchange Management Shell on the Microsoft Exchange server.
  2. Run the following Windows PowerShell cmdlet with the 'domain\user' information:
    foreach ($exchangeServer in Get-ExchangeServer) { if ($exchangeServer.ServerRole -match 'ClientAccess') { Add-ADPermission -Identity $exchangeServer.DistinguishedName -User 'domain\user' -ExtendedRights ms-Exch-EPI-Impersonation } }

    Example: foreach ($exchangeServer in Get-ExchangeServer) { if ($exchangeServer.ServerRole -match 'ClientAccess') { Add-ADPermission -Identity $exchangeServer.DistinguishedName -User 'master-domain\administrator' -ExtendedRights ms-Exch-EPI-Impersonation }}

 

Microsoft Office 365 (using EWS)

Follow steps in the article about Setting Permissions for GFI Archiver in Microsoft Office 365 Using EWS.

 

Testing

After performing the steps to set the permissions, users will perform the steps outlined in Using GFI Archiver Import/Export Tool for Importing Emails from Microsoft Exchange Mailboxes to perform an Import of the mail stored in the Exchange mail store. 

After performing a successful import it is suggested to remove the extra permissions from the account for security purposes. 

NOTE

There are no permissions to be revoked when running the Import Export Tool directly on the Microsoft® Exchange Server machine.

Importing mailboxes remotely from Microsoft® Exchange Server 2007 and later editions:

  1. Open the Microsoft Exchange Management Shell.
  2. Run the following Windows PowerShell commandlet:
Remove-ADPermission -identity "Mailbox Store" -User "Trusted User" -AccessRights GenericAll

Replace ‘Mailbox Store’ with the name of the mailbox store that contains the mailboxes of the users and ‘Trusted User’ with the user that was previously granted full mailbox access.

Example:

Remove-ADPermission -identity "Mailbox Database" -User "master-domain/JohnSmith" -AccessRights GenericAll

 

  

Related Articles

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments