B2C IEF Keyset AdministratorMicrosoft Entra built-in role
Can manage secrets for federation and encryption in the Identity Experience Framework (IEF).
High risk. Microsoft marks it as privileged. Make it eligible through PIM, not permanent.
In short: B2C IEF Keyset Administrator is a Microsoft Entra built-in role with 1 permission. Microsoft marks it as privileged, so assign it through PIM where you can.
| Role ID | aaf43236-0c0d-4d5f-883a-6955382ac081 |
|---|---|
| Privileged | Yes. Microsoft marks this role as privileged. |
| Permissions | 1 |
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/b2cTrustFrameworkKeySet/allProperties/allTasks | Read and configure key sets 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:
Connect-MgGraph -Scopes "RoleEligibilitySchedule.ReadWrite.Directory"
$user = Get-MgUser -UserId "jane.doe@contoso.com"
New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -BodyParameter @{
Action = "AdminAssign"
Justification = "Needs B2C IEF Keyset Administrator for <reason>"
RoleDefinitionId = "aaf43236-0c0d-4d5f-883a-6955382ac081"
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 'aaf43236-0c0d-4d5f-883a-6955382ac081'" -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
- Attribute Provisioning Reader · 1 permission · privileged
- Authentication Extensibility Administrator · 1 permission · privileged
- Authentication Extensibility Password Administrator · 1 permission · privileged
- Attribute Provisioning Administrator · 2 permissions · privileged
- External Identity Provider Administrator · 2 permissions · privileged
- Password Administrator · 2 permissions · privileged
- Application Developer · 3 permissions · privileged
- Domain Name Administrator · 3 permissions · 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/b2c-ief-keyset-administrator/">B2C IEF Keyset Administrator Entra role explained</a>Spotted something out of date or wrong? Tell us and we'll fix it.