Delegate access in Microsoft 365 allows users to manage another person’s mailbox, calendar, and tasks in Outlook. While this feature is essential for collaboration, issues can arise, such as persistent errors even after permissions are removed. These problems often stem from residual configurations or hidden delegate settings in the Exchange environment.
This guide provides a detailed, step-by-step approach to resetting delegate access using PowerShell. By following these steps, administrators can resolve errors and ensure that users can seamlessly manage delegate access in Microsoft 365.
Resetting delegate access is necessary when:
PowerShell offers a precise and efficient method to manage and reset delegate permissions, ensuring a clean slate for reconfiguration.
Before proceeding, ensure you have the following:
Install-Module -Name ExchangeOnlineManagement
1. Open PowerShell on your system.
Use the following command to connect to Exchange Online:
Connect-ExchangeOnline -UserPrincipalName <YourAdminAccount>
2. Authenticate using your credentials.
To check current permissions for the affected mailbox:
Get-MailboxPermission -Identity <UserMailbox> | Where-Object { $_.AccessRights -eq "FullAccess" }
Get-MailboxFolderPermission -Identity <UserMailbox>:\Calendar
This helps identify any active delegate permissions that may need removal.
Remove-MailboxPermission -Identity <UserMailbox> -User <DelegateUser> -AccessRights FullAccess
Remove-MailboxFolderPermission -Identity <UserMailbox>:\Calendar -User <DelegateUser>
Sometimes, hidden metadata causes persistent errors. Clear these settings with:
Set-Mailbox -Identity <UserMailbox> -RemoveHiddenDelegate
This command removes any hidden delegate configurations, ensuring a clean slate for the mailbox.
After clearing the old settings, you can reassign permissions:
Add-MailboxPermission -Identity <UserMailbox> -User <DelegateUser> -AccessRights FullAccess
Add-MailboxFolderPermission -Identity <UserMailbox>:\Calendar -User <DelegateUser> -AccessRights Editor
Ensure the delegate user has the appropriate access level to perform required tasks.
Instruct the user to:
If issues persist:
Task | PowerShell Command |
---|---|
Connect to Exchange Online | Connect-ExchangeOnline -UserPrincipalName <AdminUser> |
View Mailbox Permissions | Get-MailboxPermission -Identity <UserMailbox> |
View Calendar Permissions | Get-MailboxFolderPermission -Identity <UserMailbox>:\Calendar |
Remove Mailbox Permissions | Remove-MailboxPermission -Identity <UserMailbox> -User <DelegateUser> -AccessRights FullAccess |
Remove Calendar Permissions | Remove-MailboxFolderPermission -Identity <UserMailbox>:\Calendar -User <DelegateUser> |
Clear Hidden Delegate Settings | Set-Mailbox -Identity <UserMailbox> -RemoveHiddenDelegate |
Add Mailbox Permissions | Add-MailboxPermission -Identity <UserMailbox> -User <DelegateUser> -AccessRights FullAccess |
Add Calendar Permissions | Add-MailboxFolderPermission -Identity <UserMailbox>:\Calendar -User <DelegateUser> -AccessRights Editor |
Resetting delegate access in Microsoft 365 using PowerShell is an effective way to resolve persistent errors and ensure seamless delegation management. By removing residual settings, clearing hidden metadata, and reassigning permissions, administrators can provide a smooth user experience and strengthen collaboration.
Medha Cloud specializes in Microsoft 365 and Windows Server management. If you need expert assistance with troubleshooting or optimizing your Microsoft 365 environment, contact Medha Cloud today for tailored solutions.
Reach us at: