Why use this template?
Use this free PowerShell script when you need to find member users with no mail attribute. It is generated locally and can be reviewed before you run it yourself in your own PowerShell session.
The template uses Microsoft.Graph.Users and requires User.Read.All. Output: CSV report. Level: Beginner. Action: Read-only. Risk: Low.
Review before running
The script is generated in your browser. Read it before you run it, and test it outside production first. “Read-only” describes the script itself; anything you add around it can still change data.
Generate the script
- Open the template in the PowerShell Builder.
- Enter the requested values and review the module, permissions, output and risk.
- Generate the script, read it carefully, and test it outside production before use.
The script is generated locally in your browser. Nothing needs to be uploaded to Opselith.
Generate Find Entra users without mail →How to use this result
Use this report to find Member accounts where the Microsoft Graph mail property is null.
When this helps
- Review directory data quality before migrations, app integrations or identity cleanup.
- Find accounts where software expecting the mail attribute may need additional validation.
How to read the result
- A blank mail property is not the same as a blank UPN and does not by itself prove that the user cannot receive email.
- The result reflects the Entra mail property only; Exchange mailbox and proxy-address state are separate data points.
Things to check
- Guest users are excluded by the Member filter.
- Do not populate mail values automatically without understanding which system is authoritative for the identity.
What to do next: Check the user's Exchange/mail configuration and source-of-authority before correcting directory attributes.
Related tasks
Official references