> ## Documentation Index
> Fetch the complete documentation index at: https://ps365.clidsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get-ExMailboxPermission

## SYNOPSIS

Gets all permissions on an Exchange Online mailbox (Full Access, Send As, Send on Behalf)

## SYNTAX

```powershell theme={null}
Get-ExMailboxPermission [[-Identity] <string>] [-ByDomain <string>] [-UserPermission <string>]
 [-ExportToExcel] [-ExportPath <string>]
```

## DESCRIPTION

This function retrieves and displays all permissions granted on a specific mailbox:

* Full Access: Full access permissions to the mailbox
* Send As: Permissions to send emails as the mailbox
* Send on Behalf: Permissions to send emails on behalf of the mailbox

## EXAMPLES

### EXAMPLE 1

```powershell theme={null}
Get-ExMailboxPermission -Identity "john.doe@contoso.com"
```

Gets all permissions for the mailbox [john.doe@contoso.com](mailto:john.doe@contoso.com)

### EXAMPLE 2

```powershell theme={null}
Get-ExMailboxPermission -Identity "john.doe@contoso.com" -ExportToExcel
```

Gets all permissions for the mailbox and exports them to an Excel file

### EXAMPLE 3

```powershell theme={null}
Get-ExMailboxPermission -ByDomain "contoso.com"
```

Gets all permissions for all mailboxes in the contoso.com domain

### EXAMPLE 4

```powershell theme={null}
Get-ExMailboxPermission -UserPermission "john.doe@contoso.com"
```

Finds all mailbox permissions that [john.doe@contoso.com](mailto:john.doe@contoso.com) has across all mailboxes

## PARAMETERS

### -ByDomain

Filter mailboxes by domain name

```yaml theme={null}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -ExportPath

Optional output directory for the Excel export (defaults to the user profile).

```yaml theme={null}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -ExportToExcel

Export the mailbox permissions to an Excel file

```yaml theme={null}
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -Identity

The identity of the mailbox (email address, username, or display name)

```yaml theme={null}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -UserPermission

Find all permissions that a specific user has across all mailboxes (reverse lookup)

```yaml theme={null}
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
[about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String

## OUTPUTS

## NOTES

Requires the ExchangeOnlineManagement module and an active connection to Exchange Online
For Excel export functionality, requires the ImportExcel module

## RELATED LINKS

* [https://ps365.clidsys.com/docs/commands/Get-ExMailboxPermission](https://ps365.clidsys.com/docs/commands/Get-ExMailboxPermission)
