I'd like to share an old script that I polished a bit in the last days. It may be of help for some of you in this forum.
Document Exchange mailbox access rights, folder permissions, "send as", "send on behalf" and "managed by". Smoothen your migration to Exchange Online/Microsoft 365 by identifying permission chains that won't work cross-premises. Monitor permission changes over time. Identify permissions granted to recipients that no longer exist