Help Center> IoT Device Access> User Guide> Permissions Management> Creating an IAM User and Granting IoTDA Permissions

Creating an IAM User and Granting IoTDA Permissions

You can use Identity and Access Management (IAM) to implement fine-grained permissions control on IoTDA resources. With IAM, you can:

  • Create IAM users for employees based on your enterprise's organizational structure. Each IAM user has their own security credential for accessing IoTDA resources.
  • Grant only the permissions required for users to perform a specific task.
  • Entrust a cloud account or service to perform professional, efficient O&M on your IoTDA resources.

This section describes how to grant permissions to an IAM user. If your HUAWEI CLOUD account does not need individual IAM users, then you may skip this section.

Prerequisites

Learn about the permissions (see Permissions Management) supported by IoTDA and choose policies or roles according to your requirements.

Process Flow

  1. Create a user group and grant permissions to it. Create a user group on the IAM console, and attach the IoTDA ReadOnlyAccess policy to the group.
  2. Create a user and add the user to the user group. Create a user on the IAM console and add the user to the user group created.
  3. Log in using the user account. Log in to the IoTDA console as the created user and perform the following operations to check whether the permissions take effect:
    1. Call application-side APIs by following the examples provided in APIs.
    2. Call device query APIs, and the device information is returned. However, calling the device creation API fails, and the message "Operation not allowed. The user does not have the permission" is displayed, indicating that IoTDA ReadOnlyAccess has taken effect.

      If you need the user group to have all device access permissions and call all APIs, follow the guide to grant the preset system permissions to the IoTDA FullAccess user group.

Custom policies can be created using the actions supported by cloud services. They will be used as a supplement to system-defined policies to implement more refined access control. It supports custom operations and resources. You can create custom policies in the visual editor or in JSON view. For details, see Custom Policies.