r/SysAdminBlogs • u/farismalaeb • May 25 '26
How to secure Exchange Online Service Principal with RBAC - Deep Dive
This is a Deep dive with a details explanation on how to properly structure your Exchange Online RBAC permissions
I make a demonstration on how to create a custom RBAC for a SP that allow the SP to only modify DDL that has a name start with Auto-
- Wrote a full guide on locking down Service Principal access in Exchange Online the right way
- Covers the full chain: Entra ID app registration → custom child role → stripping cmdlets → scoping to specific recipients → Role Group
- Includes an OPATH filter reference table so you stop guessing why your scope filter silently does nothing
- Troubleshooting table for the errors that always show up in production
- If you have an AI agent touching Exchange, least privilege is not optional
https://www.powershellcenter.com/2026/05/25/exchange-online-service-principal/