Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Enabling Account Mapping

Updated on 2025-02-27 GMT+08:00

If fine-grained authentication and account mapping policies are not enabled, the data source uses the account of the data connection for authentication by default during script execution and job tests in DataArts Factory. Therefore, user permission management enabled through roles or permission sets does not take effect for data development.

If account mapping policies are enabled, the data source does not use the account of the data connection for authentication during script execution and job tests. Instead, the current user identity is mapped to an MRS system account or LDAP account which is used for authentication. In this way, different users have different data permissions.

NOTE:

Prerequisites

  • Required data permissions have been configured for the MRS system account or LDAP account before account mapping policies are enabled. This prevents service interruptions due to insufficient data permissions.

Notes and Constraints

  • Currently, account mapping in development mode supports only MRS Hive, MRS SPARK, MRS Impala, and MRS Hetu data connections in proxy mode. If the connection type of an MRS Hive or MRS Spark data connection is changed, for example, from proxy to API, account mapping will become invalid.
  • Account mapping is supported only when the version of the CDM cluster selected for the agent in the data connection is 2.10.0.300 or later.
  • Only the DAYU Administrator, Tenant Administrator, or data security administrator has the permission to create an account mapping policy and configure account mapping.
  • When modifying an account mapping policy, a DAYU User user can only change the mapping rule, but cannot change other information such as the mapping type and default access identity.
  • Account mapping policies take effect for all workspaces of a DataArts Studio instance. Therefore, only one account mapping policy of a mapping type can be created for a cluster.
  • During the configuration of the mapping list of an account mapping policy, the system does not check whether there is an MRS system account or LDAP account and whether the password is correct. If you configure an incorrect username or password, the account mapping fails. The system can check the username and password configured by the default access identity.

Configuring an Account Mapping Policy

An account mapping policy consists of three parts: The first part is basic information. The second part is the default access identity. If an IAM account is not configured in the cluster's account mapping, the default access identity is used. The third part is the cluster's account mapping, which means setting mapping accounts for IAM users.

  1. On the DataArts Studio console, locate a workspace and click DataArts Security.
  2. In the navigation pane on the left, choose Permission Applications. On the displayed page, click the Account Mapping tab.
  3. On the Account Mapping page, click Create.

    Figure 1 Configuring an account mapping policy

  4. Configure parameters based on Table 1 and then click Submit.

    Table 1 Parameters

    Parameter

    Description

    *Policy Name

    Name of the account mapping policy, which is unique in an instance.

    You should include the meaning of the permission set and avoid meaningless descriptions in the name so that the account mapping policy can be quickly identified.

    *Cluster Type

    You do not need to set this parameter. Currently, only MRS is supported.

    *Cluster

    MRS cluster. Only one account mapping policy of a mapping type can be created for a cluster.

    *Mapping Type

    Account mapping type. Only one account mapping policy of a mapping type can be created for a cluster.

    • System account mapping: The current IAM account is mapped to an MRS system account. This option is displayed by default.
    • LDAP account mapping: The current IAM account is mapped to an LDAP account. This option may or may not be displayed, depending on whether LDAP is enabled for MRS Hive and MRS Impala data connections.

    System account mapping

    *Default Access Identity

    Default account mapped to a system account. If no mapped account is configured for an IAM account, the default access identity is used for authentication.

    • Data connection account: The MRS system account in the connection is used for authentication and no mapping is required.
    • MRS System account: The configured common MRS system account is used for authentication.
    • Mapped account with the same name: The MRS system account with the same name as the current IAM account is used for authentication.

    KMS Key

    KMS key used to encrypt and decrypt authentication information. Select a default or custom key.

    Username

    This option is displayed when MRS System account is selected for Default Access Identity.

    For IAM accounts for which no account mapping is configured, this

    MRS system account is used for authentication.

    The system does not check whether the account exists or whether the password is correct. If the username or password is incorrect, the account mapping fails.

    Password

    FusionInsight Manager Account

    This option is displayed when the selected MRS cluster is a security cluster and Mapped account with the same name is selected for Default Access Identity.
    • The FusionInsight account configured for an MRS Hive or MRS Spark connection must have the Manager User management permission.
    • The FusionInsight account configured for an MRS Hetu connection must have the permissions of the hetuadmin user group, and the cluster version must be MRS 3.3.0-LTS or later.

    The system does not check whether the account exists or whether the password is correct. If the username or password is incorrect, the account mapping fails.

    Password

    LDAP account mapping

    *Default Access Identity

    Default account mapped to a system account. If no mapped account is configured for an IAM account, the default access identity is used for authentication.

    • Data connection account: The LDAP account in the connection is used for authentication and no mapping is required.
    • LDAP account: The configured common LDAP account is used for authentication.

    KMS Key

    KMS key used to encrypt and decrypt authentication information. Select a default or custom key.

    Username

    This option is displayed when LDAP account is selected for Default Access Identity.

    For IAM accounts for which account mapping is not configured, this LDAP account is used for authentication.

    The system does not check whether the account exists or whether the password is correct. If the username or password is incorrect, the account mapping fails.

    Password

    Cluster Account Mappings

    IAM User

    IAM users for which an account mapping rule will be configured. For IAM users not configured here, the default access identity is used for authentication.

    MRS System User/LDAP account

    MRS system user or LDAP account to be mapped and its password

    MRS System User Password/LDAP password

    Operation

    Click Delete to delete a mapping rule and click Add to add one.

    A DAYU User can only change their own mapping rule when modifying an account mapping policy.

    Figure 2 Creating an account mapping policy

Enabling Account Mapping

After configuring an account mapping policy, you must enable it on the Fine-grained permission applications page for the policy to take effect.

  1. On the DataArts Studio console, locate a workspace and click DataArts Security.
  2. In the navigation pane on the left, choose Permission Applications. On the displayed page, click the Fine-grained permission applications tab.
  3. On the Fine-grained permission applications page, test the account mapping connectivity for the data connection for which you want to enable account mapping.

    During the account mapping connectivity test, the system maps the current user identity to an MRS system account or LDAP account based on the account mapping policy before accessing the data source to ensure successful access.
    Figure 3 Testing account mapping connectivity

  4. After the account mapping connectivity test is successful, select Account mapping in development mode enabled for Fine-grained Authentication Status. Then the system automatically selects the corresponding account mapping policy based on the cluster of the data connection and enables account mapping for the connection.

    Figure 4 Enabling account mapping

Differences Between Fine-grained Authentication and Account Mapping

Table 2 Differences between fine-grained authentication and account mapping

Difference

Fine-grained Authentication

Account Mapping

Supported data connections

  • GaussDB(DWS) connections
  • MRS Hive connections in proxy mode
  • MRS Spark connections in proxy mode
  • MRS Hive connections in proxy mode
  • MRS Spark connections in proxy mode
  • MRS Hetu
  • MRS Impala

Configuration process

Test connectivity and enable fine-grained authentication.

Configure an account mapping policy, test account mapping connectivity, and enable account mapping.

Affected operations

Data development operations:

  • Fine-grained authentication for the development mode: script execution and job tests
  • Fine-grained authentication for the scheduling mode: script execution, job tests, and job scheduling

Data development operations:

  • Account mapping for the development mode: script execution and job tests

Target authentication identity

The current user is authenticated.

NOTE:

You are advised to configure roles or permission sets in advance to control user permissions.

The current user is matched in the mapping policy list.

  • If the matching is successful, the current user is mapped to the corresponding MRS system account or LDAP account for authentication.
  • If the matching fails, the default access identity is used for authentication.

    System account mapping type:

    • Data connection account: The MRS system account in the connection is used for authentication and no mapping is required.
    • MRS System account: The configured common MRS system account is used for authentication.
    • Mapped account with the same name: The MRS system account with the same name as the current IAM account is used for authentication.

    LDAP account mapping types:

    • Data connection account: The LDAP account in the connection is used for authentication and no mapping is required.
    • LDAP account: The configured common LDAP account is used for authentication.
NOTE:

You are advised to manage the permissions of the MRS system account or LDAP account in the MRS cluster in advance.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback