Overview
After a product is created, you can configure topics that devices can publish or subscribe to on the permission list page. A device inherits permissions from the product to which it belongs, and permissions can be added, deleted, or modified only at the product level.
Directions
Adding topic permission
- Log in to the IoT Hub console and click Products on the left sidebar.
- On the product list page, click the product name and select Permissions.
- On the permission list page, click Add Topic Permission, enter the topic name, and assign an operation permission to the device.
- Operation Name: the name can contain 1–64 letters, digits, and underscores, where different levels are separated by
/
, and +
indicates a level. The name should be in the format of /+/name
rather than /+aaa/
.
- Permission: you can select Subscribe, Publish, or Subscribe and Publish, and the selected permission can be changed subsequently.
![](https://main.qcloudimg.com/raw/b990fe5191e5b00cea42bbf7919337f1.png)
Editing topic permission
Click Edit in the topic permission list to change the name of the corresponding topic permission and the permission itself.
![](https://main.qcloudimg.com/raw/a9ed1eadb1f2cba9fd2ade097065b033.png)
Deleting topic permission
Click Delete in the topic permission list to delete the corresponding topic permission.
Was this page helpful?