All Exchange Access For A User

Ryan Faulkner 1 Reputation point
2021-09-24T08:19:49.893+00:00

Hi Everyone,

Would absolutely appreciate it if someone could assist. I am forever trying to find more efficient methods in my efforts to the production of my services.

Could someone please send through a command that will display all the exact permissions that a user has access to "shared mailboxes" and "send as" permissions. Let me know! I am sure this would be incredibly helpful for my work and for others in the Microsoft community.

Maybe even an edit to this command below?:

get-mailbox -ResultSize unlimited | Get-MailboxPermission -User admin | select identity, user, accessrights

Kind regards,

Ryan.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,496 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao-MSFT 37,676 Reputation points Microsoft Vendor
    2021-09-27T06:02:23.443+00:00

    Hi Ryan.

    Did you mean you would like to get the delegation settings per user mailbox?
    If it is the case, you may use the following commands to get the results.
    The csv files would contain the mailboxes and the users who have delegation access to them.

    Full access:

    Get-Mailbox -ResultSize unlimited -RecipientTypeDetails usermailbox,sharedmailbox | Get-MailboxPermission | where {($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | Select-Object Identity,User, @{Name='AccessRights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv C:\temp\full_access.csv  
    

    Send as:

    Get-Mailbox -ResultSize unlimited -RecipientTypeDetails usermailbox,sharedmailbox | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | Select-Object Identity,User, @{Name='AccessRight';Expression={[string]::join(', ', $_.ExtendedRights)}} | Export-Csv C:\temp\send_as.csv  
    

    If I misunderstood your question, please feel free to correct me.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.