Help Center/ AI DataLake/ User Guide/ Making Preparations/ Using IAM to Grant Access to AI DataLake/ Using IAM Roles or Policies to Grant Access to AI DataLake
Updated on 2026-11-06 GMT+08:00

Using IAM Roles or Policies to Grant Access to AI DataLake

Identity and Access Management (IAM) allows you to manage permissions for your roles and policies in AI DataLake. With IAM, you can:

  • Create IAM users under your Huawei Cloud account based on your enterprise's organizational structure. Each IAM user will have unique credentials to access AI DataLake resources.
  • Grant users only the permissions required to perform their tasks based on their job responsibilities.
  • Entrust a Huawei Cloud account or a cloud service to perform professional and efficient O&M on AI DataLake resources on your behalf.

If your Huawei Cloud account already meets your permission requirements and you do not need individual IAM users, skip this section.

Figure 1 shows the process flow for role- or policy-based authorization.

Prerequisites

Before granting permissions to user groups, learn about system-defined permissions in AI DataLake. For details on supported permissions, see Role/Policy-based Authorization. To grant permissions for other services, learn about all system-defined permissions supported by IAM by referring to System-defined Policies/Roles.

Process Flow

Figure 1 Process for granting AI DataLake permissions
  1. On the IAM console, create a user group and assign the required permissions to it.

    On the IAM console, create a user group and attach the DataArtsFabricReadOnlyPolicy policy to the group.

  2. On the IAM console, create an IAM user and add the user to the user group you created.

    On the IAM console, create a user and add it to the user group created in 1.

  3. Log in as the IAM user and verify permissions.

    In the authorized region, perform the following operations:

    • Select AI DataLake from the service list. On the AI DataLake homepage, click the workspace drop-down list in the upper left corner and select Create Workspace to create an AI DataLake workspace. If you cannot create the workspace (assuming your current permissions contain only DataArtsFabricReadOnlyPolicy), the DataArtsFabricReadOnlyPolicy policy has successfully taken effect.
    • Choose another service from the service list (assuming your current permissions contain only DataArtsFabricReadOnlyPolicy). If a message appears indicating that you have insufficient permissions to access that service, the DataArtsFabricReadOnlyPolicy policy has successfully taken effect.

AI DataLake Custom Policy Examples

You can create custom policies to supplement the system-defined policies of AI DataLake. For details about the actions supported by custom policies, see Identity Policy–based Authorization.

You can create custom policies in either of the following ways:

  • Visual editor: Select cloud services, actions, resources, and request conditions in the visual editor to automatically generate policies. No prior knowledge of policy syntax is required.
  • JSON: Select a policy template to edit its content, or write a policy directly in JSON format.

For details, see Creating a Custom Policy. The following provides examples of common custom policies for AI DataLake.

  • Example 1: Grant permissions to view, modify, and create workspaces.
    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "DataArtsFabric:workspace:list",
                    "DataArtsFabric:workspace:alter",
                    "DataArtsFabric:workspace:create"
                ]
            }
        ]
    }
  • Example 2: Grant permissions to deny workspace deletion.

    A policy containing only 'Deny' permissions must be used together with other policies; otherwise, it has no practical effect. If a policy assigned to an IAM user contains both 'Allow' and 'Deny' permissions, the 'Deny' permissions take precedence over the 'Allow' permissions.

    If you want to grant users the permissions defined in the DataArtsFabricFullPolicy system policy but prevent them from deleting workspaces, you can create a custom policy that denies workspace deletion and attach both the DataArtsFabricFullPolicy policy and the deny policy to the users. According to the "Deny" precedence rule, the users can perform all operations on AI DataLake except deleting workspaces. The following is an example of a deny policy:

    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Deny",
                "Action": [
                    "DataArtsFabric:workspace:drop"
                ]
            }
        ]
    }
  • Example 3: Create a custom policy containing multiple actions.

    A custom policy can contain the actions of multiple services that are of the global or project-level type. The following is an example policy containing actions of multiple services:

    {
        "Version": "1.1",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "DataArtsFabric:workspace:list",
                    "DataArtsFabric:workspace:alter",
                    "DataArtsFabric:workspace:create"
                ]
            },
            {
                "Effect": "Allow",
                "Action": [
                    "ecs:servers:get"
                ]
            }
        ]
    }

AI DataLake Resources

A resource is an object that exists within a service. When defining a custom policy, you can select resources by specifying their paths.

Table 1 AI DataLake resources and their paths

Resource

Path

workspace

DataArtsFabric:<region>:<account-id>:workspace:<workspace-id>