Skip to main content

How to revoke recipient permission from shared mailbox in offic 365?

Today, I'd like to share how to revoke recipient permission from shared mailbox in office 365.

Powershell Syntax for this taks is as below,

Revoke Full Access permissions for Shared Mailbox
Remove-MailboxPermission <Shared Mailbox Name or Full e-mail address> -User  -AccessRights FullAccess

Revoke Send As permissions for Shared Mailbox
Remove-RecipientPermission  -AccessRights SendAs -Trustee  

For example, I want to revoke the Full & Send As permission from helpdesk@ictformyanmar.com that given from technical-support@ictformyanmar.com before.
Before revoke those permissions, I'll check effected permission on technical-support@ictformyanmar.com to ensure.
Use below powershell command to check the effected permission,


To display Full Access permissions for Shared Mailbox
Get-Mailboxpermission "Technical Support"
(or)
Get-Mailboxpermission technical-support@ictformyanmar.com

To display Send As permissions for Shared Mailbox
Get-RecipientPermission "Technical Support"
(or)
Get-RecipientPermission technical-support@ictformyanmar.com

After checked and ensured the granted permissions, I'm going to revoke the permissions by using following powershell commands,

Remove-MailboxPermission "Technical Support" -User "Help Desk" -AccessRights FullAccess
(or)
Remove-MailboxPermission technical-support@ictformyanmar.com -User helpdesk@ictformyanmar.com -AccessRights FullAccess

Press Enter to confirm changed effect if below promt come out,

Confirm
Are you sure you want to perform this action?
Removing mailbox permission "Technical Support" for user "Help Desk" with access
rights "'FullAccess'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"):


Remove-RecipientPermission "Technical Support"  -AccessRights SendAs -Trustee  "Help Desk"
(or)
Remove-RecipientPermission technical-support@ictformyanmar.com -AccessRights SendAs -Trustee  helpdesk@ictformyanmar.com

Press Enter to confirm changed effect if below promt come out,

Confirm
Are you sure you want to perform this action?
Removing recipient permission 'SendAs' for user or group 'Help Desk' from recipient
'Technical Support'.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"):

To ensure revoke permission changed effect, please use below powershell commands.

To display Full Access permissions for Shared Mailbox
Get-Mailboxpermission "Technical Support"
(or)
Get-Mailboxpermission technical-support@ictformyanmar.com

To display Send As permissions for Shared Mailbox
Get-RecipientPermission "Technical Support"
(or)
Get-RecipientPermission technical-support@ictformyanmar.com

I've attached three sample photos in sequence (Before Revoke Permissions, Revoking Permissions and After Revoked Permissions) for your reference.





OK. That's the way to revoke the granted permission of shared permission from recipient.

I'll write about Inheritance Type that related with Group if I've time.

May you all be happy.
(Be knowledgeable, pass it on then)

Comments

Popular posts from this blog

Link Aggregating with Synology NAS and Cisco Switch

I’d like to share how to setup Link Aggregating between Synology NAS and Cisco Switch. I’ve got one Synology NAS with 4 Network Ports and I’m going to use 2 of them. Both Network Port to be as one Logical Link, Fault Tolerance and Load Balancing. To do that, I need to configure Link Aggregating on Synology NAS and EtherChannel with LACP on Cisco Switch. Below is brief steps to do to meet with my requirements. - Get connected Synology NAS and Cisco Switch as shown in picture. - Bonding two Network Ports of Synology NAS and assign IP Address - Configure EtherChannel with LACP in Cisco Switch and add two physical ports as Member. OK. Let’s begin from Synology NAS. - Login to the Synology and go to Control Panel>Network>Create>Create Bond - Select IEEE 802.3ad to get Fault Tolerance and Load Balancing Featureyou’re your switch not support 802.3ad you can only select Fault Tolerance only feature). After that click “Next”. - Choose the network port f

Fortigate guide for Begineer - 6

I would like to explaine how to troubleshoot the Fortigate Unit configured by Transparent Mode in step by step this time. Let's assume, you have one Fortigate Unit that configured as Transparent Mode. But devices from Internal/Private Network unable to access Internet/Public Network through your Fortigate Unit. OK. Let's troubleshoot with following steps, 1) Check the physical network connections between the network and the FortiGate unit, and between the FortiGate unit and the Internet. 2) Check the router and ISP-supplied equipment to make sure it is operating correctly. 3) Verify that you can connect to the internal interface by connecting to the management IP address of the FortiGate unit from the Internal network. From the internal network, attempt to ping the management IP address. If you cannot connect to the internal interface, verify the IP configuration of the PC and make sure the cables are connected and all switches and other devices on the network are powered on a

How to check the vpn user list and session in Cisco ASA 5520?

You've deployed Cisco ASA Firewall and setup Local AAA Server to create useraccount for IPSec VPN usage. As a network administrator, you've responsibility to check and monitor the list of vpn user and active session for security and audit purpose. You can use ASDM GUI to do such task but its handy to do. So, it is better to user CLI for that. Below are some useful commands to check user list and active vpn user sessions. To check user list, use below commands - show run | grep username - show aaa local user To check active vpn user list and sessions, use below commands - show vpn-sessiondb remote | grep Username (This command result will let you know how many user are active) - show vpn-sessiondb remote filter name username (This filter command will let you know details of vpn session user by inserting active vpn username in "username" ) Yes. That's all. Here I show you with Cisco ASA 5520 and its software version is 8.2 (5). May