Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 4.4 KB

File metadata and controls

77 lines (49 loc) · 4.4 KB
title Troubleshooting Groups with dynamic membership processing in Microsoft Entra ID
description Learn how to troubleshoot dynamic group processing by using pause and resume dynamic group processing scripts
author genlin
ms.author genli
ms.reviewer yuhko, barclayn, v-weizhu
ms.date 03/04/2025
ms.service entra-id
ms.custom sap:Users

Troubleshooting Groups with dynamic membership processing

After you make changes in Microsoft Entra ID that require a re-evaluation of dynamic group membership, you might experience either of the following issues:

  • Slow membership update
  • Unexpected group membership updates

These issues can be caused by:

  • An unintended membership rule change.
  • A significant change rollout. For example, updates that are pushed to many devices at the same time might require some group membership rules to be re-evaluated.

This article provides sample Entra ID PowerShell scripts to pause and resume dynamic group updates. Pausing dynamic group processing can stop rule processing and prevent unintended membership updates. Resuming dynamic group processing can restore normal group functionality.

Important

Dynamic membership group changes are usually processed within a few hours. However, processing may take more than 24 hours depending on factors such as tenant size, group size, number of attribute changes, rule complexity, and operator choice (such as using CONTAINS, MATCH, or MemberOf). For more information,see Understanding and Managing Dynamic Group Processing in Microsoft Entra ID.

Download pause and resume dynamic group processing scripts

To download the scripts, visit our GitHub repository. To run the scripts, ensure you have the following prerequisites:

  • An account on an Azure tenant that has the microsoft.directory/groups/allProperties/update permission
  • For applications: the Group.ReadWrite.All permission

Dynamic group management script

We provide four scripts to manage dynamic group processing by using PowerShell:

  • Pause All Groups: This script pauses all dynamic group processing in your tenant.
  • Pause Specific Groups: This script pauses dynamic group processing for specific groups that you specify in the script.
  • Pause All Groups Except Some: This script pauses dynamic group processing for all groups in your tenant except those that you specify in the script.
  • UnPauseSpecificCritical: This script resumes dynamic group processing for specific groups that you specify in the script.
  • UnPauseNonCritical: This script enables you to resume processing for noncritical groups that have dynamic membership, 100 groups at a time.

Follow the instructions within the scripts to make any changes according to your needs. Run the scripts by using the Entra ID PowerShell module.

Important

Verify all steps in a test environment before you make any changes in your production environment.

FAQ

When to use the Pause All Groups script

Use the Pause All Groups script if you suspect that there is an unintended change or you encounter delays in widespread dynamic membership updates that affect many groups.

When to use the Pause Specific Groups or Pause All Groups Except Some script

Use these scripts if you have to pause dynamic group processing for specific groups or for all groups except certain ones.

How to know when it's safe to resume dynamic group processing

Currently, Microsoft Entra doesn't offer observability for you to monitor the status of dynamic group processing. We recommend that you wait at least 12 hours before you resume processing in order to allow the service to recover from any issues.

Note

Microsoft Entra Support can help you to resume dynamic group processing only after you wait for the recommended 12 hours.

How to resume dynamic group processing

Run the unPauseSpecificCritical.ps1 script to resume rule processing for specific groups after you wait at least 12 hours. To prevent widespread delays from occurring again, start by resuming dynamic group processing for critical groups to prevent widespread delays, and then resume processing for the remaining dynamic groups in batches.

Related content

[!INCLUDE Azure Help Support]