IMAP API Permission fo Mailbox Migration Access

Modified on Tue, 30 Jun at 3:29 PM

# Import CSV

$users = Import-Csv "C:\temp\imap.csv"


# Loop through each email and assign permission

foreach ($user in $users) {

    Add-MailboxPermission `

        -Identity $user.Email `

        -User $MyApp.Id `

        -AccessRights FullAccess `

        -InheritanceType All `

        -AutoMapping $false


    Write-Host "Permission assigned to $($user.Email)"

}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article