# 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
Feedback sent
We appreciate your effort and will try to fix the article