Entra role · privileged
Domain Name AdministratorMicrosoft Entra built-in role
Can manage domain names in cloud and on-premises.
Read onlyChange some thingsPrivilegedTake over the tenant
High risk. Microsoft marks it as privileged. Make it eligible through PIM, not permanent.
In short: Domain Name Administrator is a Microsoft Entra built-in role with 3 permissions. Microsoft marks it as privileged, so assign it through PIM where you can.
| Role ID | 8329153b-31d0-4727-b945-745eb3bc5f31 |
|---|---|
| Privileged | Yes. Microsoft marks this role as privileged. |
| Permissions | 3 |
Before you assign it
Microsoft labels this a privileged role, so make it eligible through PIM rather than permanent, require phishing-resistant MFA to activate it, and review who has it regularly.
What it can do
| Permission | What it allows |
|---|---|
microsoft.directory/domains/allProperties/allTasks | Create and delete domains, and read and update all properties |
microsoft.office365.supportTickets/allEntities/allTasks | Create and manage Microsoft 365 service requests |
microsoft.office365.webPortal/allEntities/standard/read | Read basic properties on all resources in the Microsoft 365 admin center |
Assign it
The role ID is the same in every tenant, so these work as they are. Make it eligible through PIM:
Connect-MgGraph -Scopes "RoleEligibilitySchedule.ReadWrite.Directory"
$user = Get-MgUser -UserId "jane.doe@contoso.com"
New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -BodyParameter @{
Action = "AdminAssign"
Justification = "Needs Domain Name Administrator for <reason>"
RoleDefinitionId = "8329153b-31d0-4727-b945-745eb3bc5f31"
DirectoryScopeId = "/"
PrincipalId = $user.Id
ScheduleInfo = @{
StartDateTime = (Get-Date).ToUniversalTime().ToString("o")
Expiration = @{ Type = "afterDuration"; Duration = "P180D" }
}
}What each line does
- Line 1: Signs in to Microsoft Graph with the permissions (scopes) listed.
- Line 2: Reads user details from Microsoft Graph.
- Line 3: Creates a role management directory role eligibility schedule request in Microsoft Graph. Makes a change.
- Line 10: Gets the current date and time.
Who already has it?
Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
Get-MgRoleManagementDirectoryRoleAssignment -Filter "roleDefinitionId eq '8329153b-31d0-4727-b945-745eb3bc5f31'" -ExpandProperty Principal |
ForEach-Object { $_.Principal.AdditionalProperties.displayName }What each line does
- Line 1: Signs in to Microsoft Graph with the permissions (scopes) listed.
- Line 2: Reads role management directory role assignment details from Microsoft Graph.
- Line 3: Runs the block once for each item coming down the pipeline.
Related roles
- Application Developer · 3 permissions · privileged
- Lifecycle Workflows Administrator · 3 permissions · privileged
- Attribute Provisioning Administrator · 2 permissions · privileged
- Entra SOC Identity Responder · 4 permissions · privileged
- External Identity Provider Administrator · 2 permissions · privileged
- Password Administrator · 2 permissions · privileged
- Attribute Provisioning Reader · 1 permission · privileged
- Authentication Extensibility Administrator · 1 permission · privileged
Find the smallest role for a task →
Link to this page
Writing a guide or answering a question? Copy this link.
<a href="https://azureblog.co.uk/roles/entra/domain-name-administrator/">Domain Name Administrator Entra role explained</a>Spotted something out of date or wrong? Tell us and we'll fix it.