Link to home
Start Free TrialLog in
Avatar of Ernesto Gallardo
Ernesto GallardoFlag for United States of America

asked on

How to get all the mailbox where a security Group is configured as access group

HI ,
I haven't been able to find a Powershell script  to get all the mailboxes or shared mailboxes where a security Group (X) is configured as full access rights and has SendAs rights in O365. Can someone help me out with this?
Thanks,
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

It's the same as with direct (user) access:

Get-Mailbox | Get-MailboxPermission -User secgrp

Open in new window


Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | Get-RecipientPermission -Trustee secgrp

Open in new window


More examples here: http://www.michev.info/Blog/Post/1516/
Avatar of Ernesto Gallardo

ASKER

The first came out with this error for each member of the group:
"The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
 The second one didn't show anything.
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Vasil, It works