Skip to content

Entra ID Dynamic Group Health Audit Sample Using Microsoft Graph PowerShell #1003

Description

@nelladath

Sample Request

I would like to contribute a PowerShell sample that audits Microsoft Entra ID Dynamic Groups using Microsoft Graph PowerShell.

Summary

The sample retrieves a dynamic group by display name and provides health and processing information that can be useful for Intune, Windows Autopilot, Conditional Access, and Entra ID administrators.

Capabilities

  • Connects to Microsoft Graph
  • Retrieves a Dynamic Group by display name
  • Displays the dynamic membership rule
  • Retrieves membership rule processing status
  • Retrieves membership rule processing details
  • Retrieves last membership evaluation timestamp
  • Retrieves current member count
  • Exports audit results to CSV

Example Output

GroupName             : AutoPilot-Dynamic
GroupId               : b26b453d-62d0-4998-8569-10dd304b3bad
Status                : Succeeded
StatusDetails         : N/A
LastMembershipUpdated : 2026-08-30T12:47:08Z
RuleEvaluationStatus  : N/A
MemberCount           : 487
CheckedAt             : 2026-09-27 12:46:51

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions