El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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
Managed Threat Detection
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

Synchronizing IAM Users to the Data Source

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

By default, when a user accesses the MRS or GaussDB(DWS) data source through a data connection in DataArts Studio, the username and password in the data connection are used for authentication. To manage users' data access permissions based on user information, you need to synchronize user information from IAM to the data source so that different users have different identities in the data source and can use their own user information for authentication during data permission management.

Note that each MRS/GaussDB(DWS) cluster in a DataArts Studio instance can have only one user synchronization task. User synchronization tasks are configured at the DataArts Studio instance level, and data can be exchanged between workspaces.

Prerequisites

Constraints

  • In a DataArts Studio instance, each MRS/GaussDB(DWS) cluster can have only one user synchronization task.
  • If a user synchronization task keeps running for more than half an hour, the task will be stopped due to timeout. If the synchronization fails for more than 10 consecutive times, the task will be stopped.
  • Federated users have only user group information and cannot be synchronized.
  • The data source synchronizes only the user information of its own tenant and cannot synchronize the clusters from data sources of other tenants who are not connected through IP connections.
  • User synchronization is available only for MRS Hive and GaussDB(DWS) data sources. For the GaussDB(DWS) data source, user synchronization is mandatory. For the MRS data source, you can create MRS users with the same name as IAM users so that user synchronization is not needed. DLI uses IAM users for authentication. Therefore, user synchronization is not required.
  • The restrictions on MRS user synchronization tasks are as follows:
    • If a human-machine user with the same name as the user to be synchronized exists in MRS, the MRS user synchronization task fails. No error message is displayed for this error. You are advised to use either of the following methods to resolve this issue:
      • Use the IAM user synchronization function on the MRS cluster details page, rather than run the user synchronization task on the DataArts Security console again. The IAM user synchronization function is similar to the user synchronization task, except that if there are users with the same name, only these users will fail to be synchronized, and the other users can still be synchronized successfully.
      • Log in to MRS Manager, choose System > Permission > User, and delete the human-machine user with the same name as the user to be synchronized.
      • On the IAM console, delete the user to be synchronized with the same name as the MRS human-machine user.
    • Before MRS data source synchronization, ensure that the user or user group has at least one of the following permissions. Otherwise, the user or user group will not be synchronized.
      • Tenant Administrator
      • MRS FullAccess
      • MRS CommonOperations
      • MRS ReadOnlyAccess
      • MRS Administrator
      • MRS Admin
      • MRS User
      • MRS Viewer
      • Self Define (any custom policy)
  • The restrictions on GaussDB(DWS) user synchronization tasks are as follows:
    • GaussDB(DWS) user synchronization is supported only when the guest_agent version of a GaussDB(DWS) cluster is 8.2.1, or later than 8.2.1 and earlier than 9.0.0. For details about how to check the guest_agent version of a GaussDB(DWS) cluster, see Viewing the guest_agent Version of a GaussDB(DWS) Cluster.
    • Before GaussDB(DWS) user synchronization, ensure that the users at least have the DWS Database Access permission. Otherwise, the synchronization will fail.
    • To synchronize IAM users to GaussDB(DWS), you must configure the following permissions for the dlg_agency. For details, see Authorizing dlg_agency.
      • dws:dbAuthority:syncIamUse
      • iam:users:listUsers
      • iam:groups:listGroups
      • iam:users:listUsersForGroup
    • GaussDB(DWS) does not support user groups. When an IAM user group is synchronized to GaussDB(DWS), a user named in the iam_group_User group ID format will be created in GaussDB(DWS), and the iam_group_User group ID user corresponding to the user group deleted from IAM will be deleted from GaussDB(DWS). Do not create a user prefixed with iam_group_ on GaussDB(DWS) because such a user may be deleted by mistake.

Creating a User Synchronization Task

  1. On the DataArts Studio console, locate a workspace and click DataArts Security.
  2. In the left navigation pane on the DataArts Security console, choose User Synchronization.
  3. On the Synchronization Tasks page, click Create to create a user synchronization task.

    Figure 1 Creating a user synchronization task

  4. For details about how to set parameters for creating a user synchronization task, see Table 1. After setting the parameters, click OK to create a user synchronization task.

    Figure 2 Creating a user synchronization task

    Table 1 Parameters for creating a user synchronization task

    Parameter

    Description

    *Select Cluster

    Select a GaussDB(DWS) or MRS cluster that is connected through a GaussDB(DWS) or MRS data connection.

    *Cluster Type

    You do not need to set this parameter. A matched cluster type is automatically selected.

    *Data Connection

    You do not need to set this parameter. The data source cluster is automatically selected.

    *Scheduling Time

    Select the time period for scheduling, with the start time included and end time excluded.

    For example, if the scheduling time is set to 00-05, the task runs from 00:00 to 05:00 every day. Scheduling is triggered at 00:00 but not at 05:00.

    *Scheduling Period

    The task can be scheduled by hour or minute.

    *Interval

    Select a proper scheduling interval based on the selected scheduling period. The scheduling interval is the interval from the last running time. Manual synchronization is also counted in the running time.

    For example, if a task starts at 20:00 and manually executed at 20:03, and the interval is five minutes, the task is scheduled again at 20:08.

    Full Synchronization

    If an MRS cluster is selected, you can set whether to synchronize all users. By default, this function is enabled.

    You can disable it if you do not need to synchronize all users.

    *User/User Group

    If Full Synchronization is disabled, you can specify the users or user groups to be synchronized. Select at least one user or user group.

  5. After the user synchronization task is created, it does not run directly. You need to manually synchronize or schedule the task. The task takes effect after it is successfully synchronized. For details, see Synchronizing or Scheduling Tasks.

Related Operations

  • Synchronizing or scheduling tasks: On the user synchronization task page, click Synchronize or choose More > Start Schedule in the Operation column of the corresponding task. If a task has not been executed before and is scheduled for the first time, the task is triggered immediately.
    NOTE:

    If a task fails to be executed, perform the following operations:

    • If the error message indicates insufficient permissions, see Authorizing dlg_agency.
    • If the error message indicates that the GaussDB(DWS) IAM credential fails to be downloaded, check whether the current user has at least the GaussDB(DWS) database access permission.
    • If error message "Mrs sync failed, please check the failure cause on the MRS page" is displayed for the MRS task, log in to the MRS console and choose Operation Logs in the navigation pane to view the cause.
    • If the MRS operation logs do not contain error information, the synchronization failure cause is that the IAM username conflicts with the name of an existing MRS human-machine user. Log in to MRS Manager and delete the human-machine user with the same name as the IAM user. The default description of the IAM username for the synchronization is IAM Custom Policy User, and the IAM user cannot be deleted. A common MRS human-machine user can be deleted.
    • Handle other errors based on the error messages and logs.
  • Viewing task logs: On the user synchronization task page, locate the task whose logs need to be viewed and click Details in the Operation column to view the run logs. A maximum of 20 logs are displayed.

    If a task fails to be executed, you can locate the failure cause based on logs, rectify the fault, and try to execute the task again. If the fault persists, contact technical support for assistance.

  • Editing a task: On the user synchronization task page, click More in the Operation column and select Edit to edit the user synchronization task.
  • Deleting a task: On the user synchronization task page, click More in the Operation column and select Delete to delete the user synchronization task. To delete multiple tasks at a time, select the tasks and click Delete above the task list.
    NOTE:

    The deletion operation cannot be undone. Exercise caution when performing this operation.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback