azureblog.co.uk
← cd ~/roles
// roles/entra

Microsoft Entra Joined Device Local AdministratorMicrosoft Entra built-in role

Users assigned to this role are added to the local administrators group on Microsoft Entra joined devices.

Role ID9f06204d-73c1-4d4c-880a-6edb90606fd8
PrivilegedNo
Permissions2

What it can do

PermissionWhat it allows
microsoft.directory/groupSettings/standard/readRead basic properties on group settings
microsoft.directory/groupSettingTemplates/standard/readRead basic properties on group setting templates

Assign it

The role ID is the same in every tenant, so these work as they are. Make it eligible through PIM:

powershell13 lines
Connect-MgGraph -Scopes "RoleEligibilitySchedule.ReadWrite.Directory"
$user = Get-MgUser -UserId "jane.doe@contoso.com"
New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -BodyParameter @{
    Action           = "AdminAssign"
    Justification    = "Needs Microsoft Entra Joined Device Local Administrator for <reason>"
    RoleDefinitionId = "9f06204d-73c1-4d4c-880a-6edb90606fd8"
    DirectoryScopeId = "/"
    PrincipalId      = $user.Id
    ScheduleInfo     = @{
        StartDateTime = (Get-Date).ToUniversalTime().ToString("o")
        Expiration    = @{ Type = "afterDuration"; Duration = "P180D" }
    }
}

Who already has it?

powershell3 lines
Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
Get-MgRoleManagementDirectoryRoleAssignment -Filter "roleDefinitionId eq '9f06204d-73c1-4d4c-880a-6edb90606fd8'" -ExpandProperty Principal |
    ForEach-Object { $_.Principal.AdditionalProperties.displayName }

Related roles

Find the smallest role for a task →