How to get list of users " Send As " for shared mailbox using PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-2055796%22%20slang%3D%22en-US%22%3EHow%20to%20get%20list%20of%20users%20%22%20Send%20As%20%22%20for%20shared%20mailbox%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2055796%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20would%20like%20to%20pull%20out%20the%20list%20of%20users%20%22%20Send%20As%20%22%20for%20a%20specific%20Shared%20mailbox%2C%20using%20Exchange%20PowerShell.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2055796%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2055816%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20list%20of%20users%20%22%20Send%20As%20%22%20for%20shared%20mailbox%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2055816%22%20slang%3D%22en-US%22%3EThe%20SendAs%20permission%20is%20granted%20using%20Add-RecipientPernission%2C%20so%20to%20retrieve%20the%20list%20of%20users%20who%20has%20permission%20to%20send%20as%20the%20shared%20mailbox%2C%20you%20can%20run%3A%3CBR%20%2F%3EGet-RecipientPermission%20-Identity%20%3CSHAREDMAILBOX%3E%3CBR%20%2F%3EOR%3CBR%20%2F%3EGet-RecipientPermission%20-Identity%20%3CSHAREDMAILBOX%3E%20%7C%20Select%20Trustee%2C%20AccessRights%3C%2FSHAREDMAILBOX%3E%3C%2FSHAREDMAILBOX%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2055905%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20list%20of%20users%20%22%20Send%20As%20%22%20for%20shared%20mailbox%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2055905%22%20slang%3D%22en-US%22%3EI%20getting%20this%20error%20%3A%3CBR%20%2F%3E%3CBR%20%2F%3EGet-RecipientPermission%20%3A%20The%20term%20'Get-RecipientPermission'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%2C%20function%2C%20script%20file%2C%20or%20operable%20program.%20Check%20the%20spelling%20of%20the%20name%2C%20or%20if%20a%20path%20was%20included%2C%3CBR%20%2F%3Everify%20that%20the%20path%20is%20correct%20and%20try%20again.%3C%2FLINGO-BODY%3E
New Contributor

Hi,

I would like to pull out the list of users " Send As " for a specific Shared mailbox, using Exchange PowerShell. 

4 Replies
The SendAs permission is granted using Add-RecipientPernission, so to retrieve the list of users who has permission to send as the shared mailbox, you can run:
Get-RecipientPermission -Identity <SharedMailbox>
OR
Get-RecipientPermission -Identity <SharedMailbox> | Select Trustee, AccessRights
I getting this error :

Get-RecipientPermission : The term 'Get-RecipientPermission' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.

Apologies, presumed you were already connected to Exchange Online remote powershell. To run any powershell cmdlets against O365, you'll first need to connect to the respective endpoint. In this case, you'll need to connect to Exchange Online first, refer this doc: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exch...

 

Once connected, you'll be able to run Get-RecipientPermission / Get-ExoRecipientPermission (if you installed the EXO V2 module)

Thank you, for your prompt replay, that it's correct I will try to connect .