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

Printer AdministratorMicrosoft Entra built-in role

Can manage all aspects of printers and printer connectors.

Role ID644ef478-e28f-4e28-b9dc-3fdde9aa0b1f
PrivilegedNo
Permissions1

What it can do

PermissionWhat it allows
microsoft.azure.print/allEntities/allProperties/allTasksCreate and delete printers and connectors, and read and update all properties 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 Administrator for <reason>"
    RoleDefinitionId = "644ef478-e28f-4e28-b9dc-3fdde9aa0b1f"
    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 '644ef478-e28f-4e28-b9dc-3fdde9aa0b1f'" -ExpandProperty Principal |
    ForEach-Object { $_.Principal.AdditionalProperties.displayName }

Related roles

Find the smallest role for a task →