Managing Office 365 Exchange Online shared mailboxes can be done in the Office 365 Admin Center, but managing them in PowerShell is much quicker and gives additional options not available in the GUI. Attached script will help to maintain the Shared Mailbox Permissions. Script will help export the bulk permissions from Shared mailboxes and individual, also will help assign the permissions based on the requirements such as Bulk permissions assignments or individual.