How to Create an Adaptive Scope for Retention Policies Based on Domain Names for User Accounts
Azure AD and Exchange Online store information about user principal names and email addresses, but they don't store the domain name of an account. In this article, we explain how to use a custom attribute to store the domain name and then use that with an adaptive scope in a Microsoft 365 retention policy.