In this article, we will explore how to revoke the access rights that other users have on a mailbox, using both 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 cmdlet helps revoke permissions from a user's mailbox, such as removing full access granted to another user.
Before executing this cmdlet, ensure that you have the necessary permissions. For information on the permissions required to run any Exchange cmdlet, please refer to Microsoft's documentation on Exchange cmdlet permissions.
Here is the basic syntax for the Remove-MailboxPermission cmdlet:
-Identity
: specifies the mailbox from which permissions will be removed. This can be the mailbox's name, alias, or email address.-User
: specifies the user whose permissions you want to remove.-AccessRights
: specifies the access rights to remove. Common values include FullAccess
, SendAs
, etc.-InheritanceType
: Sspecifies the type of inheritance. Use All
to remove the permission inheritance.The following example demonstrates how to remove full access permission for a user from a specified mailbox:
There is another action available in CoreView to remove user access to mailboxes. For more details, please refer to the following guide: How to remove user access to mailbox.