All Products
Search
Document Center

Data Management:Manage sensitive data

Last Updated:Mar 28, 2026

Data Management Service (DMS) lets you mark database columns as sensitive, control how masked data appears to different users, and manage access to sensitive data through an approval workflow. This topic walks through all three tasks in the order you typically complete them.

Workflow overview:

StepTaskRequired role
1Configure sensitive fields — mark columns as sensitive and set their sensitivity levelDMS administrator, DBA, or security administrator
2Configure data masking rules — change which masking algorithm applies to each sensitive columnAny DMS user
3Apply for permissions on sensitive fields — request query, export, or change access to specific columnsAny DMS user

After step 1 is approved, DMS applies full redaction by default. Use step 2 to change the masking algorithm. All users, including administrators and database administrators (DBAs), must complete step 3 before they can view underlying data.

Prerequisites

Before you begin, ensure that you have:

To check your role in DMS, hover over the Profile picture icon in the upper-right corner of the console.

Supported databases:

CategoryDatabases
Relational databasesMySQL, SQL Server, PostgreSQL, MariaDB, PolarDB for PostgreSQL (Compatible with Oracle), PolarDB for Xscale, ApsaraDB for OceanBase, Oracle, DB2, Dameng (DM), Lindorm_CQL, Lindorm_SQL, OpenGauss
Data warehousesAnalyticDB for MySQL, AnalyticDB for PostgreSQL, Data Lake Analytics (DLA), ClickHouse, MaxCompute, Hologres, Hive

Configure sensitive fields

This feature is available only for administrators.
  1. Log on to the Data Management (DMS) 5.0 console.

  2. In the Database instance section of the left-side navigation pane, search for the database you want to manage.

  3. Right-click the database and select Tables to open the Table List page.

    Alternatively, open the SQLConsole tab. In the top navigation bar, choose SQL Console > SQL Console, select the database, and click Confirm. Then click the biaoxiangqing icon in the upper-right corner to go to the Table List page.
  4. Click the The expand icon icon to the left of the table you want to manage, then click Adjust on the Column tab. In the Adjust Sensitivity Level dialog box, set the sensitivity level for one or more fields.

  5. Click Submit for Security Department Approval. DMS navigates you to the SensitivityTicket Details page. Click Approve to execute the task.

    The ticket can be approved by any user with the DMS administrator, DBA, or security administrator role.
  6. Return to the SQLConsole tab, double-click the table, and verify that the adjusted fields are masked. The default masking algorithm is full redaction.

    All DMS users — including administrators and DBAs — must apply for permissions on sensitive fields before they can view the underlying data. See Apply for permissions on sensitive fields.

Configure data masking rules

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Sensitive Data > Sensitive Data Assets.

    In simple mode, hover over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Sensitive Data > Sensitive Data Assets.
  3. On the Sensitive Data Assets page, click Global Sensitive Data in the upper-right corner.

  4. On the Field Control tab, select one or more fields and click Adjust Data Masking Algorithm.

  5. Select an existing masking rule or create a new one:

    • Use an existing rule: Select a rule from the drop-down list and click Save.

    • Create a new rule: Click Create Data Masking Rule. On the Data Masking Rule page, click Create Data Masking Rule and fill in the rule name and masking algorithm on the Create Rule page. For details, see Manage data masking algorithms.

Apply for permissions on sensitive fields

All DMS users — including administrators and DBAs — must submit a permission application before querying sensitive field data.

  1. Log on to the DMS console V5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Permission Center > Permission Tickets.

    In simple mode, hover over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Permission Center > Permission Tickets.
  3. In the upper-right corner, choose Access apply > Sensitive Column-Permission.

  4. On the permission application ticket page, enter the database name in the search box, click Search, and select the sensitive field.

  5. Click Add. The field appears in the Selected Databases/Tables/Columns section.

  6. In the Select Permission section, configure the following parameters and click Submit.

    After submitting, wait for approval. To check the status, click Submitted Tickets in the My Tickets section on the DMS homepage.
    ParameterDescription
    PermissionThe permission types to apply for. Select one or more: Query, Export, or Change.
    Data Masking MethodHow sensitive data is displayed to you after approval. Semi-sensitization shows data in the format produced by the configured masking algorithm. Plain Text shows data without masking. If you select Export with Semi-sensitization, the exported data is also partially masked.
    DurationThe validity period of the permissions.
    ReasonThe business context and reason for your request. A clear reason speeds up the approval process.

    shenqingliequanxian

  7. After the ticket is approved, query the sensitive field data on the SQLConsole tab.

What's next

References