Entra role
IoT Device AdministratorMicrosoft Entra built-in role
Provision new IoT devices, manage their lifecycle, configure certificates, and manage device templates.
Read onlyChange some thingsPrivilegedTake over the tenant
Medium risk. It can change some settings or objects, but Microsoft doesn't mark it as privileged.
In short: IoT Device Administrator is a Microsoft Entra built-in role with 10 permissions. Microsoft doesn't mark it as privileged.
| Role ID | 2ea5ce4c-b2d8-4668-bd81-3680bd2d227a |
|---|---|
| Privileged | No |
| Permissions | 10 |
What it can do
| Permission | What it allows |
|---|---|
microsoft.directory/certificateBasedDeviceAuthConfigurations/create | Create Certificate Authorities configurations for IoT Device trust and authentication |
microsoft.directory/certificateBasedDeviceAuthConfigurations/credentials/update | Update crendential related properties on certificate authority configurations for Internet of Things (IoT) device trust and authentication |
microsoft.directory/certificateBasedDeviceAuthConfigurations/delete | Delete certificate authority configurations for Internet of Things (IoT) device |
microsoft.directory/certificateBasedDeviceAuthConfigurations/standard/read | Read standard properties on certificate authority configurations for Internet of Things (IoT) device trust and authentication |
microsoft.directory/deviceTemplates/create | Create Internet of Things (IoT) device templates |
microsoft.directory/deviceTemplates/createDeviceFromTemplate | Create IoT Device from Internet of Things (IoT) device templates |
microsoft.directory/deviceTemplates/delete | Delete Internet of Things (IoT) device templates |
microsoft.directory/deviceTemplates/deviceInstances/read | Read device instances from Internet of Things (IoT) device links |
microsoft.directory/deviceTemplates/owners/read | Read owners on Internet of Things (IoT) device templates |
microsoft.directory/deviceTemplates/owners/update | Update owners on Internet of Things (IoT) device templates |
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 IoT Device Administrator for <reason>"
RoleDefinitionId = "2ea5ce4c-b2d8-4668-bd81-3680bd2d227a"
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 '2ea5ce4c-b2d8-4668-bd81-3680bd2d227a'" -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 Assignment Administrator · 10 permissions
- Teams Telephony Administrator · 10 permissions
- Compliance Data Administrator · 9 permissions
- Knowledge Manager · 11 permissions
- License Administrator · 9 permissions
- Teams Communications Administrator · 11 permissions
- Dragon Administrator · 8 permissions
- Dynamics 365 Business Central Administrator · 8 permissions
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/iot-device-administrator/">IoT Device Administrator Entra role explained</a>Spotted something out of date or wrong? Tell us and we'll fix it.