Skip to content

egonzalez-it/ExchangeOnline-Get-Shared-Mailbox-Permissions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

📧 Get Shared Mailbox Access (Exchange Online)

PowerShell Exchange Online Microsoft 365 License


🚀 Overview

This PowerShell script identifies which shared mailboxes a user can access in Exchange Online.

It checks for the following permissions:

  • Full Access
  • Send As
  • Send on Behalf

It displays the results on screen once and exports them to: SharedMailboxAccess__.csv in the same folder where the script is located.


🎯 Key Features

  • Checks all shared mailboxes in the tenant
  • Identifies Full Access permissions
  • Identifies Send As permissions
  • Identifies Send on Behalf permissions
  • Clean and structured output
  • Simple and reusable script

⚙️ Requirements

  • Exchange Online PowerShell module
  • Active Exchange Online session
  • Appropriate permissions to read mailbox delegation settings

🔐 Connect to Exchange Online

Before running the script:

Connect-ExchangeOnline

Usage

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\Get-SharedMailboxAccess.ps1 -UserEmail user@company.com

Example Output

SharedMailbox               FullAccess SendAs SendOnBehalf
-------------               ---------- ------ ------------
finance@company.com         True       False  True
support@company.com         True       True   False
info@company.com            False      True   False

Notes

This script is read-only It does not modify any Exchange configuration Results depend on your current Exchange Online administrative permissions In some environments, Send on Behalf values may be stored as recipient names or aliases rather than SMTP addresses

About

Identifies which shared mailboxes a user can access in Exchange Online.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors