Skip to content

Commit e8b4951

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/azure-docs-pr (branch live)
2 parents b00f7c4 + 004eb0d commit e8b4951

File tree

66 files changed

+753
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+753
-273
lines changed

.openpublishing.redirection.active-directory.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10774,6 +10774,11 @@
1077410774
"source_path": "articles/active-directory/reports-monitoring/reference-azure-ad-sla-performance.md",
1077510775
"redirect_url": "/azure/active-directory/reports-monitoring/overview-monitoring",
1077610776
"redirect_document_id": false
10777+
},
10778+
{
10779+
"source_path": "articles/active-directory/manage-apps/get-it-now-azure-marketplace.md",
10780+
"redirect_url": "/azure/active-directory/manage-apps/add-application-portal",
10781+
"redirect_document_id": false
1077710782
}
1077810783

1077910784
]

articles/active-directory/manage-apps/get-it-now-azure-marketplace.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

articles/active-directory/roles/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
href: admin-units-members-list.md
8383
- name: Remove members
8484
href: admin-units-members-remove.md
85+
- name: Manage members with dynamic membership rules
86+
href: admin-units-members-dynamic.md
8587
- name: Assign roles with scope
8688
href: admin-units-assign-roles.md
8789
- name: Delegate

articles/active-directory/roles/admin-units-faq-troubleshoot.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ summary: |
2020
For more granular administrative control in Azure Active Directory (Azure AD), you can assign users to an Azure AD role with a scope that's limited to one or more administrative units. For sample PowerShell scripts for common tasks, see [Work with administrative units](/powershell/azure/active-directory/working-with-administrative-units).
2121
2222
sections:
23-
- name: Ignored
23+
- name: General
2424
questions:
2525
- question: |
2626
Why am I unable to create an administrative unit?
@@ -78,6 +78,45 @@ sections:
7878
7979
Find support for the [administrativeUnit resource type](/graph/api/resources/administrativeunit) in Microsoft Graph.
8080
81+
- name: Dynamic administrative units (Preview)
82+
questions:
83+
- question: |
84+
I just saved a dynamic membership rule for an administrative unit, but I don't see any users populated yet.
85+
answer: |
86+
The initial update of an administrative unit can take a few minutes depending on your tenant size and the current Azure AD load.
87+
88+
- question: |
89+
After creating a dynamic membership rule in the Azure portal using the rule builder and attempting to save, I get the error "Failed to update administrative unit properties".
90+
answer: |
91+
This usually means there is a problem with the supplied property values. Confirm that the property values you have supplied have a proper value type (Boolean, string, or string collection). For more information, see the allowed values for each operator for [users](../enterprise-users/groups-dynamic-membership.md#supported-properties) or [devices](../enterprise-users/groups-dynamic-membership.md#rules-for-devices).
92+
93+
This error can also result if a person without an Azure AD Premium P1 license attempts to save an update to the administrative unit.
94+
95+
- question: |
96+
How can I add a single member to an administrative unit in addition to the current dynamic membership rule?
97+
answer: |
98+
To add a single user, add an appropriate expression with the `OR` query operator to the dynamic membership rule.
99+
100+
- question: |
101+
I am a Global Administrator, but I can't add or remove members for an administrative unit.
102+
answer: |
103+
When an administrative unit has been configured for dynamic membership, you must edit the dynamic membership rules to change membership.
104+
105+
- question: |
106+
How many administrative units with dynamic membership rules can I create in a tenant?
107+
answer: |
108+
For the preview, the total number of dynamic groups and dynamic administrative units combined cannot exceed 5,000.
109+
110+
- question: |
111+
Is there a limit to the number of characters in a dynamic membership rule?
112+
answer: |
113+
Yes. 3,072 characters.
114+
115+
- question: |
116+
Can I create administrative units with dynamic membership rules in the Microsoft 365 admin center?
117+
answer: |
118+
No.
119+
81120
additionalContent: |
82121
83122
## Next steps

articles/active-directory/roles/admin-units-members-add.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ ms.collection: M365-identity-device-management
2424
2525
In Azure Active Directory (Azure AD), you can add users, groups, or devices to an administrative unit to restrict the scope of role permissions. For additional details on what scoped administrators can do, see [Administrative units in Azure Active Directory](administrative-units.md).
2626

27+
This article describes how to add users, groups, or devices to administrative units manually. For information about how to add users or devices to administrative units dynamically using rules, see [Manage users or devices for an administrative unit with dynamic membership rules](admin-units-members-dynamic.md).
28+
2729
## Prerequisites
2830

2931
- Azure AD Premium P1 or P2 license for each administrative unit administrator
@@ -212,4 +214,5 @@ Body
212214

213215
- [Administrative units in Azure Active Directory](administrative-units.md)
214216
- [Assign Azure AD roles with administrative unit scope](admin-units-assign-roles.md)
217+
- [Manage users or devices for an administrative unit with dynamic membership rules](admin-units-members-dynamic.md)
215218
- [Remove users, groups, or devices from an administrative unit](admin-units-members-remove.md)
Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
---
2+
title: Manage users or devices for an administrative unit with dynamic membership rules (Preview) - Azure Active Directory
3+
description: Manage users or devices for an administrative unit with dynamic membership rules (Preview) in Azure Active Directory
4+
services: active-directory
5+
documentationcenter: ''
6+
author: rolyon
7+
manager: karenhoran
8+
ms.service: active-directory
9+
ms.topic: how-to
10+
ms.subservice: roles
11+
ms.workload: identity
12+
ms.date: 03/22/2022
13+
ms.author: rolyon
14+
ms.reviewer: anandy
15+
ms.custom: oldportal;it-pro;
16+
ms.collection: M365-identity-device-management
17+
---
18+
19+
# Manage users or devices for an administrative unit with dynamic membership rules (Preview)
20+
21+
> [!IMPORTANT]
22+
> Dynamic membership rules for administrative units are currently in PREVIEW.
23+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
24+
25+
You can add or remove users or devices for administrative units manually. With this preview, you can add or remove users or devices for administrative units dynamically using rules. This article describes how to create administrative units with dynamic membership rules using the Azure portal, PowerShell, or Microsoft Graph API.
26+
27+
Although administrative units with members assigned manually support multiple object types, such as user, group, and devices, it is currently not possible to create an administrative unit with dynamic membership rules that includes more than one object type. For example, you can create administrative units with dynamic membership rules for users or devices, but not both. Administrative units with dynamic membership rules for groups are currently not supported.
28+
29+
## Prerequisites
30+
31+
- Azure AD Premium P1 or P2 license for each administrative unit administrator
32+
- Azure AD Premium P1 or P2 license for each administrative unit member
33+
- Privileged Role Administrator or Global Administrator
34+
- AzureADPreview module when using PowerShell
35+
- Admin consent when using Graph explorer for Microsoft Graph API
36+
- Global Azure cloud (not available in specialized clouds, such as Azure Government or Azure China)
37+
38+
> [!NOTE]
39+
> Dynamic membership rules for administrative units requires an Azure AD Premium P1 license for each unique user that is a member of one or more dynamic administrative units. You don't have to assign licenses to users for them to be members of dynamic administrative units, but you must have the minimum number of licenses in the Azure AD organization to cover all such users. For example, if you had a total of 1,000 unique users in all dynamic administrative units in your organization, you would need at least 1,000 licenses for Azure AD Premium P1 to meet the license requirement. No license is required for devices that are members of a dynamic device administrative unit.
40+
41+
For more information, see [Prerequisites to use PowerShell or Graph Explorer](prerequisites.md).
42+
43+
## Add dynamic membership rules
44+
45+
Follow these steps to create administrative units with dynamic membership rules for users or devices.
46+
47+
### Azure portal
48+
49+
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
50+
51+
1. Select **Azure Active Directory**.
52+
53+
1. Select **Administrative units** and then select the administrative unit that you want to add users or devices to.
54+
55+
1. Select **Properties**.
56+
57+
1. In the **Membership type** list, select **Dynamic User** or **Dynamic Device**, depending on the type of rule you want to add.
58+
59+
![Screenshot of an administrative unit Properties page with Membership type list displayed.](./media/admin-units-members-dynamic/admin-unit-properties.png)
60+
61+
1. Select **Add dynamic query**.
62+
63+
1. Use the rule builder to specify the dynamic membership rule. For more information, see [Rule builder in the Azure portal](../enterprise-users/groups-dynamic-membership.md#rule-builder-in-the-azure-portal).
64+
65+
![Screenshot of Dynamic membership rules page showing rule builder with property, operator, and value.](./media/admin-units-members-dynamic/dynamic-membership-rules-builder.png)
66+
67+
1. When finished, select **Save** to save the dynamic membership rule.
68+
69+
1. On the **Properties** page, select **Save** to save the membership type and query.
70+
71+
The following message is displayed:
72+
73+
After changing the administrative unit type, the existing membership may change based on the dynamic membership rule you provide.
74+
75+
1. Select **Yes** to continue.
76+
77+
For steps on how to edit your rule, see the following [Edit dynamic membership rules](#edit-dynamic-membership-rules) section.
78+
79+
### PowerShell
80+
81+
1. Create a dynamic membership rule. For more information, see [Dynamic membership rules for groups in Azure Active Directory](../enterprise-users/groups-dynamic-membership.md).
82+
83+
1. Use the [Connect-AzureAD](/powershell/module/azuread/connect-azuread) command to connect with Azure Active Directory with a user that has been assigned the Privileged Role Administrator or Global Administrator role.
84+
85+
```powershell
86+
# Connect to Azure AD
87+
Connect-AzureAD
88+
```
89+
90+
1. Use the [New-AzureADMSAdministrativeUnit](/powershell/module/azuread/new-azureadmsadministrativeunit) command to create a new administrative unit with a dynamic membership rule using the following parameters:
91+
92+
- `MembershipType`: `Dynamic` or `Assigned`
93+
- `MembershipRule`: Dynamic membership rule you created in a previous step
94+
- `MembershipRuleProcessingState`: `On` or `Paused`
95+
96+
```powershell
97+
# Create an administrative unit for users in the United States
98+
$adminUnit = New-AzureADMSAdministrativeUnit -DisplayName "Example Admin Unit" -Description "Example Dynamic Membership Admin Unit" -MembershipType "Dynamic" -MembershipRuleProcessingState "On" -MembershipRule '(user.country -eq "United States")'
99+
```
100+
101+
### Microsoft Graph API
102+
103+
1. Create a dynamic membership rule. For more information, see [Dynamic membership rules for groups in Azure Active Directory](../enterprise-users/groups-dynamic-membership.md).
104+
105+
1. Use the [Create administrativeUnit](/graph/api/administrativeunit-post-administrativeunits?view=graph-rest-beta&preserve-view=true) API to create a new administrative unit with a dynamic membership rule.
106+
107+
The following shows an example of a dynamic membership rule that applies to Windows devices.
108+
109+
Request
110+
111+
```http
112+
POST https://graph.microsoft.com/beta/administrativeUnits
113+
```
114+
115+
Body
116+
117+
```http
118+
{
119+
"displayName": "Windows Devices",
120+
"description": "All Contoso devices running Windows",
121+
"membershipType": "Dynamic",
122+
"membershipRule": "(device.deviceOSType -eq \"Windows\")",
123+
"membershipRuleProcessingState": "On"
124+
}
125+
```
126+
127+
## Edit dynamic membership rules
128+
129+
When an administrative unit has been configured for dynamic membership, the usual commands to add or remove members for the administrative unit are disabled as the dynamic membership engine retains the sole ownership of adding or removing members. To make changes to the membership, you can edit the dynamic membership rules.
130+
131+
### Azure portal
132+
133+
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
134+
135+
1. Select **Azure Active Directory**.
136+
137+
1. Select **Administrative units** and then select the administrative unit that has the dynamic membership rules you want to edit.
138+
139+
1. Select **Membership rules** to edit the dynamic membership rules using the rule builder.
140+
141+
![Screenshot of an administrative unit with Membership rules and Dynamic membership rules options to open rule builder.](./media/admin-units-members-dynamic/membership-rules-options.png)
142+
143+
You can also open the rule builder by selecting **Dynamic membership rules** in the left navigation.
144+
145+
1. When finished, select **Save** to save the dynamic membership rule changes.
146+
147+
### PowerShell
148+
149+
Use the [Set-AzureADMSAdministrativeUnit](/powershell/module/azuread/set-azureadmsadministrativeunit) command to edit the dynamic membership rule.
150+
151+
```powershell
152+
# Set a new dynamic membership rule for an administrative unit
153+
Set-AzureADMSAdministrativeUnit -Id $adminUnit.Id -MembershipRule '(user.country -eq "Germany")'
154+
```
155+
156+
### Microsoft Graph API
157+
158+
Use the [Update administrativeUnit](/graph/api/administrativeunit-update?view=graph-rest-beta&preserve-view=true) API to edit the dynamic membership rule.
159+
160+
Request
161+
162+
```http
163+
PATCH https://graph.microsoft.com/beta/administrativeUnits/{id}
164+
```
165+
166+
Body
167+
168+
```http
169+
{
170+
"membershipRule": "(user.country -eq "Germany")"
171+
}
172+
```
173+
174+
## Change a dynamic administrative unit to assigned
175+
176+
Follow these steps to change an administrative unit with dynamic membership rules to an administrative unit where members are manually assigned.
177+
178+
### Azure portal
179+
180+
1. Sign in to the [Azure portal](https://portal.azure.com) or [Azure AD admin center](https://aad.portal.azure.com).
181+
182+
1. Select **Azure Active Directory**.
183+
184+
1. Select **Administrative units** and then select the administrative unit that you want to change to assigned.
185+
186+
1. Select **Properties**.
187+
188+
1. In the **Membership type** list, select **Assigned**.
189+
190+
![Screenshot of an administrative unit Properties page with Membership type list displayed and Assigned selected.](./media/admin-units-members-dynamic/admin-unit-properties.png)
191+
192+
1. Select **Save** to save the membership type.
193+
194+
The following message is displayed:
195+
196+
After changing the administrative unit type, the dynamic rule will no longer be processed. Current administrative unit members will remain in the administrative unit and the administrative unit will have assigned membership.
197+
198+
1. Select **Yes** to continue.
199+
200+
When the membership type setting is changed from dynamic to assigned, the current members remain intact in the administrative unit. Additionally, the ability to add groups to the administrative unit is enabled.
201+
202+
### PowerShell
203+
204+
Use the [Set-AzureADMSAdministrativeUnit](/powershell/module/azuread/set-azureadmsadministrativeunit) command to change the membership type setting.
205+
206+
```powershell
207+
# Change an administrative unit to assigned
208+
Set-AzureADMSAdministrativeUnit -Id $adminUnit.Id -MembershipType "Assigned" -MembershipRuleProcessingState "Paused"
209+
```
210+
211+
### Microsoft Graph API
212+
213+
Use the [Update administrativeUnit](/graph/api/administrativeunit-update?view=graph-rest-beta&preserve-view=true) API to change the membership type setting.
214+
215+
Request
216+
217+
```http
218+
PATCH https://graph.microsoft.com/beta/administrativeUnits/{id}
219+
```
220+
221+
Body
222+
223+
```http
224+
{
225+
"membershipType": "Assigned"
226+
}
227+
```
228+
229+
## Next steps
230+
231+
- [Assign Azure AD roles with administrative unit scope](admin-units-assign-roles.md)
232+
- [Add users or groups to an administrative unit](admin-units-members-add.md)
233+
- [Azure AD administrative units: Troubleshooting and FAQ](admin-units-faq-troubleshoot.yml)
234+

0 commit comments

Comments
 (0)