Skip to content

Commit dd4d860

Browse files
000-581: mailboxes
1 parent fe26a10 commit dd4d860

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

articles/en/Other/mailbox.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
layout: page
3+
title: 'Exchange Online: What mailboxes User has access to?'
4+
hero_image: '/img/IMG_20220521_140146.jpg'
5+
menubar: docs_menu
6+
show_sidebar: false
7+
hero_height: is-small
8+
date: '2024-12-30'
9+
---
10+
11+
The article describes a way how to verify user's access rights to other people's mailboxes.
12+
13+
## Check who has access to a single mailbox
14+
15+
In order to check who has access to a single mailbox, run the following cmdlet:
16+
17+
18+
```powershell
19+
Get-MailboxPermission -Identity arleta
20+
```
21+
22+
arleta - identity of the mailbox, e.g. arleta@testova365.onmicrosoft.com
23+
24+
In the screenshot below you can see that user2@testova365.onmicrosoft.com has FullAccess rights on the mailbox. But how to check which and how many mailboxes user2 has access to?
25+
26+
<img src="/articles/img/mail.png" width="600" >
27+
28+
29+
<br/><br/>
30+
31+
## Check what mailboxes a user has access to
32+
33+
There is no direct cmdlet, but we can loop through all the existing mailboxes and verify specific user's rights:
34+
35+
36+
```powershell
37+
$mailboxes = Get-Mailbox -Resultsize Unlimited
38+
39+
foreach($mailbox in $mailboxes){
40+
Get-MailboxPermission -Identity $mailbox.Identity -User user2@testova365.onmicrosoft.com
41+
}
42+
```
43+
44+
<img src="/articles/img/mail2.png" width="600" >
45+
46+
The AccessRights columns display the access level to each individual mailbox. User's own mailbox will not be displayed.
47+
48+
<br/><br/>
49+
50+
## Export to CSV
51+
The report on user's permissions can be exported to a CSV file:
52+
53+
54+
```powershell
55+
foreach($mailbox in $mailboxes){
56+
Get-MailboxPermission -Identity $mailbox.Identity -User user2@testova365.onmicrosoft.com | export-csv c:\maiperms.csv -Append
57+
}
58+
59+
```
60+
61+
<br/><br/>
62+
63+
## Other Languages
64+
This article is available in other languages:
65+
66+
Exchange Online: Do jakich skrzynek użytkownik ma dostęp? (pl-PL)
67+
Exchange Online: lister les boîtes aux lettres auxquelles un utilisateur a accès (fr-FR)

articles/img/mail.png

62.6 KB
Loading

articles/img/mail2.png

25.6 KB
Loading

0 commit comments

Comments
 (0)