Permissions Management
If you need to assign your employees different permissions to access IoTDA resources, Identity and Access Management (IAM) is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you secure access to your resources.
You can use your HUAWEI CLOUD account to create IAM users, and assign permissions to the users to control their access to specific resources. For example, statistical personnel in your enterprise need to view IoTDA resources but should not be able to add or delete the resources or perform any other high-risk operations. In this case, you can create IAM users for the personnel and grant them only the permissions required.
If you do not need IAM to manage permissions, you can skip this section.
IAM can be used free of charge. You pay only for the resources in your account. For more information about IAM, see IAM Service Overview.
IoTDA Permissions
By default, new IAM users do not have any permissions assigned. The administrator needs to add a user to one or more groups, and attach permissions policies and roles to these groups. The user then inherits permissions from the groups. Users can perform specified operations on cloud services based on their assigned permissions.
IoTDA is a project-level service. Currently, IAM authorization is supported for IoTDA in CN North-Beijing4 and CN East-Shanghai1.
- Roles are a coarse-grained authorization mechanism that defines permissions based on user responsibilities. This mechanism provides only a limited number of service-level roles for authorization. When using roles to grant permissions, you may also need to assign other roles on which the permissions depend. However, roles are not an ideal choice for fine-grained authorization or secure access control.
- Policies are a fine-grained authorization mechanism that defines permissions required to perform operations on specific cloud resources under certain conditions. This mechanism allows for more flexible authorization and meets the requirements for secure access control.
Because of the cache, it takes about 15 minutes for an IoTDA-related role to take effect after being granted to users and user groups and 5 minutes for an IoTDA-related policy to take effect after being granted. After roles or policies are granted, IAM users need to obtain a new token before calling IoTDA APIs.
Table 1 lists all system permissions of IoTDA.
| Role/Policy Name | Description | Type |
|---|---|---|
| Tenant Administrator | Permissions to perform all operations on all services except IAM | System role |
| Tenant Guest | Permissions to perform read-only operations on all services except IAM | System role |
| IoTDA FullAccess | Full permissions for IoTDA | System-defined policy |
| IoTDA ReadOnlyAccess | Read-only permissions for IoTDA | System-defined policy |
Table 2 lists the common operations supported by each system role and system-defined policy of IoTDA. Select the proper roles or policies as required.
| Operation | Tenant Administrator | Tenant Guest | IoTDA FullAccess | IoTDA ReadOnlyAccess |
|---|---|---|---|---|
| Querying the subscription list | Supported | Supported | Supported | Supported |
| Creating a subscription | Supported | Not supported | Supported | Not supported |
| Querying a subscription | Supported | Supported | Supported | Supported |
| Modifying a subscription | Supported | Not supported | Supported | Not supported |
| Deleting a subscription | Supported | Not supported | Supported | Not supported |
| Binding a tag | Supported | Not supported | Supported | Not supported |
| Unbinding a tag | Supported | Not supported | Supported | Not supported |
| Querying resources by tag | Supported | Supported | Supported | Supported |
| Querying the batch task list | Supported | Supported | Supported | Supported |
| Creating a batch task | Supported | Not supported | Supported | Not supported |
| Querying a batch task | Supported | Supported | Supported | Supported |
| Obtaining the device CA certificate list | Supported | Supported | Supported | Supported |
| Uploading a device CA certificate | Supported | Not supported | Supported | Not supported |
| Deleting a device CA certificate | Supported | Not supported | Supported | Not supported |
| Verifying a device CA certificate | Supported | Not supported | Supported | Not supported |
| Querying the device group list | Supported | Supported | Supported | Supported |
| Adding a device group | Supported | Not supported | Supported | Not supported |
| Querying a device group | Supported | Supported | Supported | Supported |
| Modifying a device group | Supported | Not supported | Supported | Not supported |
| Deleting a device group | Supported | Not supported | Supported | Not supported |
| Managing devices in a device group | Supported | Not supported | Supported | Not supported |
| Querying devices in a device group | Supported | Supported | Supported | Supported |
| Querying device messages | Supported | Supported | Supported | Supported |
| Delivering a device message | Supported | Not supported | Supported | Not supported |
| Querying a message by message ID | Supported | Supported | Supported | Supported |
| Querying the product list | Supported | Supported | Supported | Supported |
| Creating a product | Supported | Not supported | Supported | Not supported |
| Querying a product | Supported | Supported | Supported | Supported |
| Modifying a product | Supported | Not supported | Supported | Not supported |
| Deleting a product | Supported | Not supported | Supported | Not supported |
| Querying the device list | Supported | Supported | Supported | Supported |
| Registering a device | Supported | Not supported | Supported | Not supported |
| Querying a device | Supported | Supported | Supported | Supported |
| Modifying a device | Supported | Not supported | Supported | Not supported |
| Deleting a device | Supported | Not supported | Supported | Not supported |
| Resetting a device secret | Supported | Not supported | Supported | Not supported |
| Querying device shadow data | Supported | Supported | Supported | Supported |
| Configuring desired device shadow data | Supported | Not supported | Supported | Not supported |
| Delivering a device command | Supported | Not supported | Supported | Not supported |
| Querying device properties | Supported | Supported | Supported | Supported |
| Modifying device properties | Supported | Not supported | Supported | Not supported |
| Querying the rule list | Supported | Supported | Supported | Supported |
| Creating a rule | Supported | Not supported | Supported | Not supported |
| Querying a rule | Supported | Supported | Supported | Supported |
| Modifying a rule | Supported | Not supported | Supported | Not supported |
| Deleting a rule | Supported | Not supported | Supported | Not supported |
| Modifying the rule status | Supported | Not supported | Supported | Not supported |
| Querying the resource space list | Supported | Supported | Supported | Supported |
| Creating a resource space | Supported | Not supported | Supported | Not supported |
| Querying a resource space | Supported | Supported | Supported | Supported |
| Deleting a resource space | Supported | Not supported | Supported | Not supported |
References
Last Article: Terms
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.