Azure Internet of Things built-in role

IoT Hub Data Contributor

IoT Hub Data Contributor provides full access to IoT Hub service data-plane operations through IoT Hub service-API DataActions. It grants no Azure Resource Manager Actions, so it does not configure the IoT hub resource or create Azure role assignments.

Role-definition permissions are imported from Microsoft Learn. Practical scope, use cases, prerequisites, best practices, security considerations, assignment guidance, and relationships have been reviewed against the official sources below.

Role definition ID: 4fc6c259-987e-4a07-842e-c321cc9d413f

Control-plane actions (0)

None — this role grants no control-plane management actions.

Data-plane actions (1)

Excluded actions (0)

None

Assignable scopes (1)

Practical scope

Assign on the individual IoT hub. IoT Hub does not support a smaller Azure assignment scope for a device identity, so resource-group, subscription, or management-group assignments broaden access to every inherited hub.

Common use cases (2)

Prerequisites (2)

Best practices (2)

Security considerations (2)

Assignment guidance

Assign IoT Hub Data Contributor to the service client or operator on the one IoT hub only after matching the required API operations to this role. Use a narrower built-in or custom data role when the complete published capability is unnecessary, and add Azure Reader separately only for portal navigation.

Related roles (3)

Common questions

When should I assign the IoT Hub Data Contributor Azure role?

Assign IoT Hub Data Contributor when you need to: Authorize a trusted backend service that must manage device identities and twins, invoke direct methods, send cloud-to-device messages, and manage jobs or configurations.; and Grant the Device Update service principal the documented access it needs on the linked IoT hub to deploy and manage updates.. Practical scope: Assign on the individual IoT hub. IoT Hub does not support a smaller Azure assignment scope for a device identity, so resource-group, subscription, or management-group assignments broaden access to every inherited hub.

What permissions does the IoT Hub Data Contributor Azure role grant?

The role definition grants 1 combined control-plane and data-plane actions. Representative operations include: Microsoft.Devices/IotHubs/*. Review the permission sections above for the complete definition and exclusions.

What are the security risks of the IoT Hub Data Contributor Azure role?

Key considerations when assigning IoT Hub Data Contributor: The DataAction wildcard spans device identities, twins, jobs, configurations, direct methods, cloud-to-device messaging, and other service APIs, so it is broader than registry-only or twin-only roles.; and These roles authorize IoT Hub service APIs, not device-to-cloud device authentication and not Azure control-plane management. A parent-scope assignment affects every inherited hub.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (6)

Official Microsoft Learn documentation →