Why use this template?
Use this PowerShell template when you need to find users without a usage location value. 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 usage location →How to use this result
Use this report to identify users missing UsageLocation before license assignment or licensing-readiness work.
When this helps
- Check licensing readiness before assigning Microsoft 365 or Entra licenses.
- Find accounts that need a UsageLocation value reviewed by the responsible administrator.
How to read the result
- A returned row means the UsageLocation property is blank; it does not infer a country from office, address, IP or sign-in data.
- UsageLocation is a licensing property and should not be treated as proof of a user's physical residence.
Things to check
- The script is read-only and does not set UsageLocation values.
- Choose the correct two-letter location value according to your organization's licensing and user-data process before making changes.
What to do next: Validate the correct location with your source of truth, then set UsageLocation separately if the account should be licensed.
Related tasks
Official references