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

Desktop Analytics AdministratorMicrosoft Entra built-in role

Can access and manage Desktop management tools and services.

Role ID38a96431-2bdf-4b4c-8b6e-5d3d8abac1a4
PrivilegedNo
Permissions4

What it can do

PermissionWhat it allows
microsoft.azure.serviceHealth/allEntities/allTasksRead and configure Azure Service Health
microsoft.azure.supportTickets/allEntities/allTasksCreate and manage Azure support tickets
microsoft.directory/authorizationPolicy/standard/readRead standard properties of authorization policy
microsoft.office365.desktopAnalytics/allEntities/allTasksManage all aspects of Desktop Analytics

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 Desktop Analytics Administrator for <reason>"
    RoleDefinitionId = "38a96431-2bdf-4b4c-8b6e-5d3d8abac1a4"
    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 '38a96431-2bdf-4b4c-8b6e-5d3d8abac1a4'" -ExpandProperty Principal |
    ForEach-Object { $_.Principal.AdditionalProperties.displayName }

Related roles

Find the smallest role for a task →