Why use this template?
Use this PowerShell template when you need to export groups with direct member counts using Graph count queries instead of downloading every member. It can be previewed in the Builder; Pro access is required to generate it for your own environment.
The template uses Microsoft.Graph.Groups and requires GroupMember.Read.All. Output: CSV report. Level: Intermediate. Action: Read-only. Risk: Low.
Review before running
The script remains preview-only until Pro access is enabled. Review it before running it, and test it outside production first. “Read-only” describes the script itself; anything you add around it can still change data.
Preview the script
- Open the template in the PowerShell Builder.
- Review the purpose, requirements, permissions, output and risk.
- Activate Pro when you are ready to generate the full script, then test it outside production.
Pro templates remain previewable before purchase or activation. No tenant connection is required. When you generate a Pro script, only the configuration values needed for that template are sent to Opselith after license validation.Preview Export Entra group membership counts →
How to use this result
Use this report to compare group size and basic group characteristics across the tenant without exporting every member row.
When this helps
- Find unusually large, empty or unexpectedly small groups for follow-up.
- Create a lightweight group-size inventory before migration or governance review.
How to read the result
- MemberCount is a count returned for each group; it does not show who the members are or why they have access.
- MailEnabled, SecurityEnabled and GroupTypes help distinguish group characteristics but do not replace workload-specific governance checks.
Things to check
- Per-group count failures are kept in the Error column instead of silently becoming zero.
- A zero count is only meaningful when the corresponding Error value is empty.
What to do next: Open the member export for groups whose count or type needs investigation before changing membership.
Related tasks
Official references