I have these two commands that pull send as access and full acess permissions for users. I was wondering if I could have them to pull the users permissions in the format I have listed below.
Get-Mailbox | Get-MailboxPermission | ?{($_.AccessRight s -eq "FullAccess") -and ($_.User -like 'DOMAIN\user') -and ($_.IsInherited -eq $false)}
Get-Mailbox -OrganizationalUnit "" | Get-ADPermission | ? {$_.Deny -eq $false -and $_.ExtendedRights -like "*Send-As*" -and $_.IsInherited -eq $false -and !($_.User-like "NT AUTHORITY\SELF")} | Select User,Identity,@{N="AccessRights";E={$_.AccessRights}},@{N="ExtendedRights";E={$_.ExtendedRights}}
user1
domain\user
domain\user1
domain\user2
domain\user3
user2
domain\user
domain\user1
domain\user2
domain\user3
user3
domain\user1
domain\user2
domain\user3
Open in new window
I think I have found the solution. At least this works in distribution groups http://oxfordsbsguy.com/2014/04/21/exchange-powershell-how-to-enumerate-distribution-lists-managers-and-members/ next to the last at the bottom. It lists the groups and then the members. I was trying to list the mailbox and then who what full access are assigned to that mailbox.