CmdID / PowerShell / Cmdlets / Remove
Remove-MailboxPermission
Use the Remove-MailboxPermission cmdlet to remove permissions from a user's mailbox or from an Exchange Server 2016, Exchange Server 2019 or Exchange Online mail user. Exchange PowerShell reference
From the Exchange PowerShell reference 15 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the mailbox where you are removing permissions.-AccessRightsThe AccessRights parameter specifies the permission that you want to remove from the user on the mailbox.-InstanceThe Instance parameter enables you to pass an entire object to the command to be processed.-UserThe User parameter specifies whose permissions are being removed from the specified mailbox.-ClearAutoMappingThe ClearAutoMapping parameter excludes the mailbox from the auto-mapping feature in Microsoft Outlook.-ResetDefaultThe ResetDefault switch resets the default security descriptor of the mailbox.-BypassMasterAccountSidThe BypassMasterAccountSid switch suppresses the following error: Can't remove the access control entry on the object "User" for the user account because the ACE doesn't exist on the object.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DenyThe Deny switch specifies that the permissions you're removing are Deny permissions.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-GroupMailboxThe GroupMailbox switch is required to remove permissions from a Microsoft 365 Group mailbox.-IgnoreDefaultScopeThe IgnoreDefaultScope switch tells the command to ignore the default recipient scope setting for the Exchange PowerShell session, and to use the entire forest as the scope.-InheritanceTypeThe InheritanceType parameter specifies whether permissions are inherited to folders within the mailbox.-SoftDeletedMailboxThe SoftDeletedMailbox switch is required to remove permissions from a soft-deleted mailbox.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.