KelvinTegelaar / CIPP

CIPP is a M365 multitenant management solution
https://cyberdrain.com / https://cipp.app
GNU Affero General Public License v3.0
791 stars 4.8k forks source link

[Feature Request]: Mailbox & Calendar Rights from an specific user #2554

Closed Link-itSupport closed 3 months ago

Link-itSupport commented 3 months ago

Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.

When you click on "Read and manage" on a mailbox, you have a list of users. image

We would like to see when you click on a user (Administration -> Users -> User), what they all have rights to, i.e. which calendar and mailbox. (like the process above but in reverse) Instead of going through every mailbox/calendar to see if that person is entitled to it.

PowerShell commands you would normally use to achieve above request

Calendar Rights: Get-Mailbox | % { Get-MailboxFolderPermission (($_.PrimarySmtpAddress.ToString())+”:\Agenda”) -User -ErrorAction SilentlyContinue} | select Identity,User,AccessRights

Mailbox Rights: Get-Mailbox | % { Get-MailboxPermission (($_.PrimarySmtpAddress)) -User } | select Identity,User,AccessRights

KelvinTegelaar commented 3 months ago

This is impossible, as it requires a query for all users and all permissions - This would take hours to finish on small tenants, days or weeks on large tenants.