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

External Identity Provider AdministratorMicrosoft Entra built-in role

Can configure identity providers for use in direct federation.

Role IDbe2f45a1-457d-42af-a067-6ec1fa63bc45
PrivilegedYes. Microsoft marks this role as privileged.
Permissions2

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

PermissionWhat it allows
microsoft.directory/domains/federation/updateUpdate federation property of domains
microsoft.directory/identityProviders/allProperties/allTasksRead and configure identity providers in Azure Active Directory B2C

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 External Identity Provider Administrator for <reason>"
    RoleDefinitionId = "be2f45a1-457d-42af-a067-6ec1fa63bc45"
    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 'be2f45a1-457d-42af-a067-6ec1fa63bc45'" -ExpandProperty Principal |
    ForEach-Object { $_.Principal.AdditionalProperties.displayName }

Related roles

Find the smallest role for a task →