01 / The problem
A request was raised to remove 23 listed former employees from email groups. The scope included internal users and external mail-enabled contacts, so checking only active employee accounts would not have been sufficient.
02 / Auditing group memberships
I used PowerShell to check the supplied identities against mail-enabled recipients and group memberships. The checks covered distribution groups, Microsoft 365 groups and dynamic distribution group membership previews.
One listed identity could not be resolved as a mail-enabled recipient. I kept this distinction in mind rather than treating an unresolved identity as proof that an account had been removed.
03 / Handling external contacts
A follow-up audit identified six external mail contacts that still belonged to distribution groups. These contacts were removed from the affected groups using Exchange Online PowerShell, with the scope limited to the requested membership cleanup.
Remove-DistributionGroupMember `
-Identity $Group `
-Member $RecipientDynamic groups are evaluated by recipient filters rather than direct membership changes. Their previews were included in the verification.
04 / Verifying the cleanup
The final check across distribution groups, Microsoft 365 groups and dynamic group previews returned zero remaining matching memberships.
This verified the requested email group cleanup within the identities and group types checked. It was not a claim that every former employee account had been deleted or that every access permission across Microsoft 365 had been reviewed.
Client names, account identifiers and confidential details have been omitted. This account is based on my support notes. Example commands are illustrative.