This article will explore how to remove user access to mailboxes, utilizing PowerShell and CoreView.
To remove permissions from a user's mailbox, or from an Exchange Server 2016, Exchange Server 2019, or Exchange Online mail user, use the Remove-MailboxPermission cmdlet. This command allows you to revoke delegated permissions previously assigned to a mailbox, such as removing another user's full access.
For Exchange Online environments, it is recommended to use the Exchange Online PowerShell V2 (EXO V2) module, which supports modern authentication (including MFA). Legacy authentication is deprecated and should be avoided for security and compliance reasons.
Ensure you have the necessary permissions to execute mailbox permission changes. You can find detailed permission requirements in Microsoft's documentation.
Connecting to Exchange Online (EXO V2 Module)
If you’re working with Exchange Online, connect using the EXO V2 module as follows:
Syntax
Example:
This example shows how to remove Test User's full access permission to CoreView Demo mailbox.
For more about the Remove-MailboxPermission
cmdlet, see the Microsoft documentation.
With CoreView, you can revoke mailbox permission rights, including “Send as” permissions, that a selected user has on other mailboxes.
There is another action available in CoreView to remove user access to mailboxes. For more details, please refer to the following link: How to remove delegates from mailbox.