IoT Hub access rights
IoT Hub has a defined set of permissions that needs to be taken into consideration. It is used for any IoT device or backend solution to connect or communicate with the IoT Hub. Once you have the appropriate permission, only then you will be able to access the respective IoT Hub endpoints.
Getting ready
The different permissions that you can grant to a device or backend application to access your IoT Hub are:
iothubowner
: This will allow any device or backend solution all permissionsservice
: This will allow an access policy with only theService connect
permissiondevice
: This will enable the device with an access Policy which has theDevice connect
permissionregistryRead
: This is a policy withRegistry read
permissionregistryReadWrite
: This is a policy withRegistry read
andR
egistry write
permissions- Per-device security credentials: Each device's credentials are maintained in the device registry
How to do it...
This recipe will guide you through different access permissions...