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

Printer TechnicianMicrosoft Entra built-in role

Can register and unregister printers and update printer status.

Role IDe8cef6f1-e4bd-4ea8-bc07-4b8d950f4477
PrivilegedNo
Permissions5

What it can do

PermissionWhat it allows
microsoft.azure.print/connectors/allProperties/readRead all properties of connectors in Microsoft Print
microsoft.azure.print/printers/allProperties/readRead all properties of printers in Microsoft Print
microsoft.azure.print/printers/basic/updateUpdate basic properties of printers in Microsoft Print
microsoft.azure.print/printers/registerRegister printers in Microsoft Print
microsoft.azure.print/printers/unregisterUnregister printers in Microsoft Print

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 Printer Technician for <reason>"
    RoleDefinitionId = "e8cef6f1-e4bd-4ea8-bc07-4b8d950f4477"
    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 'e8cef6f1-e4bd-4ea8-bc07-4b8d950f4477'" -ExpandProperty Principal |
    ForEach-Object { $_.Principal.AdditionalProperties.displayName }

Related roles

Find the smallest role for a task →