image

Giving a helpdesk analyst least-privilege access with Entra administrative units

An audit at MrCloudSec said our helpdesk had too much admin power, so we wanted tighter control. I gave Adam, our new helpdesk analyst, the ability to reset passwords for Finance users only, and then proved he cannot touch anyone outside Finance. For this ticket I set that up with a scoped role and tested it. 
It is a test tenant with fictional accounts. Tenant names, emails and other account details are hidden behind black boxes, and the red marks point out what matters in each screenshot.
Skill: Role-based access control with administrative units, delegating admin work with least privilege in Microsoft Entra ID.
What this solves: A helpdesk role assigned across the whole tenant gives far more power than the job needs. A password reset role should only reach the users it is meant to support.
The approach: scoped role assignment (least privilege). The role is given over one administrative unit instead of the whole directory, so its reach is limited to that unit's members.
Solutions used: an Entra administrative unit for Finance, the Password Administrator role assigned at that unit's scope, and a test of the reset on in-scope and out-of-scope users to prove the boundary.

Global Administrator and User Administrator are far too broad for this job. I chose Password Administrator. As you can see, its description says it can reset passwords for non-administrators, and for members of only three roles: Directory readers, Guest inviter and Password administrator. It is also tagged Privileged, so it still deserves care.

image
The Password Administrator role description.

Before I changed anything, I checked Adam’s assigned roles. He had none.

image
Adam starts with no roles.

A role assigned from the main roles page applies to the whole tenant. To limit it, I created an administrative unit called AU-Finance.

image
The new administrative unit.

I then added Raj and Travis as members. I left Adam and Sam out on purpose, so Sam can act as my out-of-scope test user later.

image
AU-Finance contains two users.

From inside AU-Finance, I assigned Password Administrator to Adam. The Scope column shows AU-Finance (Administrative unit), not the whole directory.

image
The assignment, scoped to the administrative unit.

I also confirmed it from Adam’s side. He has a single assignment, scoped the same way.

image
Adam holds only the scoped role.

I signed in as Adam in a separate session and ran three tests.

The Reset password option was available, and the pane opened for Raj.

image
Adam can start a reset for Raj.

For Sam, the reset was refused. Notice that the message is generic and also mentions resetting your own password, so it does not say why the reset failed.

image
Adam cannot reset Sam.

Create new user was greyed out. The Invite external user option looked available. Whether he can actually invite guests depends on the tenant’s guest invitation settings, which I did not test here.

image
Adam cannot create internal users.

The audit log recorded the assignment: a PIM request, a PIM completion and a core directory entry for adding a scoped member to the role, all successful, within a second of each other.

image
The role assignment in the audit log.
The scope matters as much as the role. The same role assigned tenant-wide would have let Adam reset far more accounts.
The assignment is Active and Permanent, as the Start and End time columns show. Even at this narrow scope, that is standing access. My next ticket uses Privileged Identity Management to make it eligible, with approval.
The assignment shows up in the audit log with a PIM entry, which helps when reviewing who has what.

Leave a Comment

Your email address will not be published. Required fields are marked *