Entra · Security

Prevent Conditional Access bypass with Restricted Management Administrative Units in Entra ID

· 3 min read · Entra, Security

Bypassing Conditional Access is easy. That’s because most Conditional Access policies rely on Entra ID Security Groups. Since Entra ID is very “flat” by default, every admin with group management permissions can add or remove members to ANY group. \

That’s why we want to handle our include and exclude groups carefully. This idea does not stand alone and is also mentioned in this marvelous article by Thomas Naunheim. If you’re new to Restricted Management Administrative Units, I suggest reading this blog post first. In this post, we look at the concept and the steps required to set up Restricted Management Administrative Units and eligible Group Administrators using Entra Privileged Identity Management.

Let’s take a look at a typical Conditional Access policy. This policy will enforce MFA for all apps and will target a specific group.

Conditional Access policy targeting a group

We also have an exclusion group for break-glass accounts and some service accounts.

Conditional Access exclusion group

Group Admins who add or remove members are also changing the scope of the Conditional Access policy, which can cause a bypass. Let’s prevent that from happening.

For this demo, we need a role-assignable group to delegate our permissions. We make Alex Wilber a member of this group. Alex is the only admin who can add or delete members of the Conditional Access policies. That’s the goal.

Let’s also build a new Admin Unit and make sure to select “Restricted management administrative unit.” The new Admin Unit will now be created as Restricted Management Administrative Unit (RMAU), the star of today’s show.

Create a Restricted Management Administrative Unit

For now, we do not assign any roles. We will do this later so that we can select role-assignable groups from the picker. For some reason, I can only choose users from the wizard.

Create the Administrative Unit without assigning roles

With the new RMAU created, we add our Conditional Access include/exclude groups.

Add Conditional Access groups to the restricted unit

After a short while, the groups should be visible from the UI.

Conditional Access groups listed in the restricted unit

Now, let’s assign the Groups Administrator role to our role-assignable group.

Assign the Groups Administrator role

For the purpose of this demo, we add an eligible assignment.

Configure an eligible role assignment

Now select the role-assignable group that we created earlier (ControlPlaneAdmins [Tier0])

Select a role-assignable group for the role assignment

The assignment will be permanent for now, but you can also choose a limited one.

Set the role assignment duration

After adding the assignment, check of the role was added to the group, within the RMAU.

Verify the role assignment within the restricted unit

How to check if a group is managed by RMUA#

From the Entra admin center you see a yellow banner saying the group is restricted, and as you can see, even the Global Administrator cannot add new members.

Restricted group banner and unavailable membership controls

We can also check the assigned Administrative Units.

Check the group’s assigned Administrative Units

Manage group membership via Entra Privileged Identity Management#

Now that we have restricted the groups and assigned the Groups Admin role to the RMAU, we can have a look at the other side. I’m now signed in as Alex Wilber, who should be eligible to update the group memberships. Before activating the group admin role, Alex could not add or delete any members of the group.

Group membership controls before role activation

Now, Alex goes into Entra Privileged Identity Management and activates the Group administrator role on the RMAU.

Activate the Groups Administrator role in PIM

After the role is activated, Alex can add and delete members to the group.

Add or remove group members after role activation

Let’s wrap up#

As you can see, the Restricted Management Administrative Units feature is very powerful when combined with Entra Privileged Identity Management. Conditional Access include and exclude groups should be protected to avoid security bypasses.

Read more:

Protection of privileged users and groups by Azure AD Restricted Management Administrative Units - Thomas Naunheim (cloud-architekt.net)
Restricted management administrative units in Microsoft Entra ID (Preview) - Microsoft Entra ID | Microsoft Learn

Comments

Comments load when you scroll here.