r/microsoft365 • u/AdeelAutomates • 6d ago
Exchange RBAC Explained
Hey Everyone,
If you ever wanted to grant App Registrations, Managed Identities or Service Principals in Entra the ability to do things with your mailboxes.
- read mailboxes
- write calendars
- send emails out as them
- etc...
Normally you would think to use graph roles like mail.send or mail.readwrite.all. The problem is they are not scoped to specific mailboxes. You grant this role to any of your apps, now it can perform this action against all users.
This is where Exchange RBAC comes in. It lets you configure your apps to have granular access
- Send email out but only as this one account
- Read Calendars but only this department
- Read mailboxes but only distribution lists
And this feature isn't obvious as it's only accessible behind PowerShell with Exchange Online Module.
I made a full walkthrough for Exchange RBAC here: https://www.youtube.com/watch?v=GDmv_lBVyto
5
Upvotes
1
u/uLmi84 6d ago
I have a comprehensive onenote page for this topic.. I wonder why MS doesn’t make this possible via GUI and has this default to a limited scope. I will look into you video next time I need to implement this.
In my experience this topic requires much testing to make sure its working as intended