Dynamic membership for administrative units
Microsoft's edit ·
Microsoft's commit message in MicrosoftDocs/entra-docs · commit 31331d5 · +10 −10 lines · also on GitHub
⋯ 59 unchanged lines
6060
6161
1. Select **Add dynamic query**.
6262
63
−1. Use the rule builder to specify the dynamic membership groups rule. For more information, see [Rule builder in the Azure portal](~/identity/users/groups-dynamic-membership.md#rule-builder-in-the-azure-portal).
63
+1. Use the rule builder to specify the rule for dynamic membership groups. For more information, see [Rule builder in the Azure portal](~/identity/users/groups-dynamic-membership.md#rule-builder-in-the-azure-portal).
6464
6565

6666
67
−1. When finished, select **Save** to save the dynamic membership groups rule.
67
+1. When finished, select **Save** to save the rule for dynamic membership groups.
6868
6969
1. On the **Properties** page, select **Save** to save the membership type and query.
7070
7171
The following message is displayed:
7272
73
− After changing the administrative unit type, the existing membership might change based on the dynamic membership groups rule you provide.
73
+ After changing the administrative unit type, the existing membership might change based on the rule for dynamic membership groups that you provide.
7474
7575
1. Select **Yes** to continue.
7676
⋯ 9 unchanged lines
8686
Connect-MgGraph -Scopes "AdministrativeUnit.ReadWrite.All"
8787
```
8888
89
−1. Use the [New-MgDirectoryAdministrativeUnit](/powershell/module/microsoft.graph.identity.directorymanagement/new-mgdirectoryadministrativeunit) command to create a new administrative unit with a dynamic membership groups rule using the following parameters:
89
+1. Use the [New-MgDirectoryAdministrativeUnit](/powershell/module/microsoft.graph.identity.directorymanagement/new-mgdirectoryadministrativeunit) command to create a new administrative unit with a rule for dynamic membership groups using the following parameters:
9090
9191
- `MembershipType`: `Dynamic` or `Assigned`
9292
- `MembershipRule`: Dynamic membership rule you created in a previous step
⋯ 14 unchanged lines
107107
108108
### Microsoft Graph API
109109
110
−1. Create a dynamic membership groups rule. For more information, see [Dynamic membership rules for groups in Microsoft Entra ID](~/identity/users/groups-dynamic-membership.md).
110
+1. Create a rule for dynamic membership groups. For more information, see [Dynamic membership rules for groups in Microsoft Entra ID](~/identity/users/groups-dynamic-membership.md).
111111
112
−1. Use the [Create administrativeUnit](/graph/api/directory-post-administrativeunits?view=graph-rest-beta&preserve-view=true) API to create a new administrative unit with a dynamic membership groups rule.
112
+1. Use the [Create administrativeUnit](/graph/api/directory-post-administrativeunits?view=graph-rest-beta&preserve-view=true) API to create a new administrative unit with a rule for dynamic membership groups.
113113
114
− The following shows an example of a dynamic membership groups rule that applies to Windows devices.
114
+ The following shows an example of a rule for dynamic membership groups that applies to Windows devices.
115115
116116
Request
117117
⋯ 38 unchanged lines
156156
Use the [Update-MgDirectoryAdministrativeUnit](/powershell/module/microsoft.graph.identity.directorymanagement/update-mgdirectoryadministrativeunit) command to edit the dynamic membership groups rule.
157157
158158
```powershell
159
−# Set a new dynamic membership groups rule for an administrative unit
159
+# Set a new rules for dynamic membership groups for an administrative unit
160160
$adminUnit = Get-MgDirectoryAdministrativeUnit -Filter "displayName eq 'Example Admin Unit'"
161161
$params = @{
162162
membershipRule = "(user.country -eq 'Germany')"
⋯ 4 unchanged lines
167167
168168
### Microsoft Graph API
169169
170
−Use the [Update administrativeUnit](/graph/api/administrativeunit-update?view=graph-rest-beta&preserve-view=true) API to edit the dynamic membership groups rule.
170
+Use the [Update administrativeUnit](/graph/api/administrativeunit-update?view=graph-rest-beta&preserve-view=true) API to edit the rule for dynamic membership groups.
171171
172172
Request
173173
⋯ 39 unchanged lines
213213
214214
### PowerShell
215215
216
−Use the [Update-MgDirectoryAdministrativeUnit](/powershell/module/microsoft.graph.identity.directorymanagement/update-mgdirectoryadministrativeunit) command to edit the dynamic membership groups rule.
216
+Use the [Update-MgDirectoryAdministrativeUnit](/powershell/module/microsoft.graph.identity.directorymanagement/update-mgdirectoryadministrativeunit) command to edit the rule for dynamic membership groups.
217217
218218
```powershell
219219
# Change an administrative unit to assigned
⋯ 32 unchanged lines
Microsoft's Markdown source from MicrosoftDocs/entra-docs, © Microsoft Corporation, under MIT. Changed lines with up to 3 unchanged lines around each; ChangeIntel kept this copy 26 Oct 06:37 UTC. The commit date is when the source changed, which can be hours or days before Learn published it.