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

Using IAM Identity Policies to Grant Access to AI DataLake

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

  • Create IAM users or user groups 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 all your permission requirements, skip this section.

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

Prerequisites

Before granting permissions, learn about system-defined permissions in AI DataLake. For details on supported permissions, see Identity Policy-based Permissions Management. To grant permissions for other services, learn about all system-defined permissions supported by IAM by referring to System-defined Identity Policies.

Process Flow

Figure 1 Process for granting AI DataLake permissions
  1. Create an IAM user or create a user group.

  2. Attach an identity policy to a user or user group.

    Attach the system policy DataArtsFabricReadOnlyPolicy (AI DataLake read-only permissions) to the user group to which the user belongs.

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

    Log in to the AI DataLake console as an authorized user and verify your permissions.

    • 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 identity policies to supplement the system-defined identity policies of AI DataLake. For details about the actions supported by custom identity policies, see Identity Policy–based Authorization.

You can create custom identity 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 Identity Policy and Attaching It to a Principal.

The following provides examples of common custom identity policies for AI DataLake.

  • Example 1: Grant permissions to view, modify, and create workspaces.
    {
        "Version": "5.0",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "DataArtsFabric:workspace:list",
                    "DataArtsFabric:workspace:alter",
                    "DataArtsFabric:workspace:create"
                ],
                "Resource": [
                    "DataArtsFabric:*:*:workspace:*"
                ]
            }
        ]
    }
  • Example 2: Create a custom policy containing multiple actions.

    A custom policy can contain the actions of one or more services.

    Example policy containing multiple actions:

    {
        "Version": "5.0",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "DataArtsFabric:workspace:list",
                    "DataArtsFabric:workspace:alter",
                    "DataArtsFabric:workspace:create"
                ]
            },
            {
                "Effect": "Allow",
                "Action": [
                    "vpc:vpcs:get"
                ]
            }
        ]
    }