Groups Dynamic Rule Advanced
In brief
The documentation now specifies Microsoft Graph PowerShell modules version 2.41.2 or later and changes the script from exact-version to minimum-version imports.
What Entra admins need to know
Administrators can run the script with module versions newer than 2.41.2; no migration or configuration change is required.
This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
}
To change the priority of every dynamic membership group in your tenant that uses MemberOf, you can use Microsoft Graph PowerShell. The following script requires version 2.41.2 or later of the `Microsoft.Graph.Authentication` and `Microsoft.Graph.Groups` modules. Before you run it, replace `<tenant-id>` with your tenant ID. The script shows how many groups it found, changes the priority of each group to Standard, and then lists each group's priority so that you can confirm the change.
```powershell
Import-Module Microsoft.Graph.Authentication -RequiredVersion-MinimumVersion 2.41.2 -ErrorAction Stop
Import-Module Microsoft.Graph.Groups -RequiredVersion-MinimumVersion 2.41.2 -ErrorAction Stop
Connect-MgGraph -TenantId "<tenant-id>" `
-Scopes "Group.ReadWrite.All" -ErrorAction Stop
@@ -171,11 +171,11 @@ Content-Type: application/json } ``` -To change the priority of every dynamic membership group in your tenant that uses MemberOf, you can use Microsoft Graph PowerShell. The following script requires the `Microsoft.Graph.Authentication` and `Microsoft.Graph.Groups` modules. Before you run it, replace `<tenant-id>` with your tenant ID. The script shows how many groups it found, changes the priority of each group to Standard, and then lists each group's priority so that you can confirm the change.+To change the priority of every dynamic membership group in your tenant that uses MemberOf, you can use Microsoft Graph PowerShell. The following script requires version 2.41.2 or later of the `Microsoft.Graph.Authentication` and `Microsoft.Graph.Groups` modules. Before you run it, replace `<tenant-id>` with your tenant ID. The script shows how many groups it found, changes the priority of each group to Standard, and then lists each group's priority so that you can confirm the change. ```powershell-Import-Module Microsoft.Graph.Authentication -RequiredVersion 2.41.2 -ErrorAction Stop-Import-Module Microsoft.Graph.Groups -RequiredVersion 2.41.2 -ErrorAction Stop+Import-Module Microsoft.Graph.Authentication -MinimumVersion 2.41.2 -ErrorAction Stop+Import-Module Microsoft.Graph.Groups -MinimumVersion 2.41.2 -ErrorAction Stop Connect-MgGraph -TenantId "<tenant-id>" ` -Scopes "Group.ReadWrite.All" -ErrorAction Stop 