All Products
Search
Document Center

Data Management:Configure approval processes

Last Updated:Mar 28, 2026

In Data Management (DMS), security rules and approval processes work together. Assign different approval processes to different user behaviors to control who must approve a ticket before an operation proceeds.

Prerequisites

Before you begin, ensure that you have:

Key concepts

Approval node

An approval node is one stage in an approval process. Each node has one or more approvers. When a node has multiple approvers, the process advances to the next node as soon as any one approver approves.

DMS includes four built-in approval nodes:

Approval nodeWho approves
AdminA DMS administrator
DBAThe DBA of the resource being operated
DBA RolesAny user with the DBA role, including the resource DBA
OwnerThe owner of the resource being operated
To assign the DBA role to a user, see Edit a user. To set the DBA for an instance, edit its advanced settings on the Data Assets > Instances page. To apply for owner permissions, see Manage access control permissions.

In addition to the built-in nodes, you can add, edit, and delete custom approval nodes. Each approval node has a unique node ID.

Approval template

An approval template chains one or more approval nodes into a sequence. Nodes are processed in ascending order — node 0 runs first, then node 1, and so on.

Each template has a unique template ID. For example, template 851 might chain nodes 512 and 511. To apply a template to a security rule, enter its template ID in the rule configuration.

DMS includes built-in approval templates. You can also add, edit, and delete custom templates.

Approval priority

Security rules support approval processes at two levels: basic configuration items and checkpoints. When both are configured, the checkpoint process takes priority. The basic configuration item process applies only if no checkpoint process is set.

Approval-free processes

To skip approval entirely, set the template ID to -1. Three DSL actions produce an approval-free process:

ActionEffect
@act.do_not_approveDoes not require approval.
@act.choose_approve_template -1Sets the template ID to -1
@act.choose_approve_template_with_reason -1 "No approval required"Sets the template ID to -1 and returns "No approval required" in the ticket

For DSL syntax details, see DSL syntax for security rules.

Step 1: Create an approval node

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

  2. In the upper-left corner, move the pointer over the 2023-01-28_15-57-17.png icon and choose All Features > Security and disaster recovery (DBS) > Approval Processes.

    In normal mode, choose Security and disaster recovery (DBS) > Approval Processes from the top navigation bar.
  3. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Security and disaster recovery (DBS) > Approval Processes.

    Note

    If you use the DMS console in normal mode, choose Security and disaster recovery (DBS) > Approval Processes in the top navigation bar.

  4. In the left navigation pane, click the Approval Node tab.

  5. Click Add Approval Node.

  6. Fill in the node details:

    ParameterDescription
    Node NameName of the approval node
    CommentRemarks for the approval node
    ApproverOne or more approvers. If multiple approvers are added, the node advances after any one approves.
  7. Click Submit.

Step 2: Create an approval template

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

  2. In the top navigation bar, choose Security and Specifications > Approval Processes.

    In simple mode, click the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Functions > Security and Specifications > Approval Flow.
  3. In the left navigation pane, click the Approval Template tab.

  4. Click Add Approval Template.

  5. Fill in the template details:

    ParameterDescription
    Template NameName of the approval template
    CommentRemarks for the approval template
    Approval NodeClick Add Node to add nodes. Nodes run in ascending order: 0 is first, 1 is second.
  6. Click Submit.

What's next

Apply the approval template to a security rule for an instance in Security Collaboration mode. For details, see Apply an approval template to a security rule.

Approver actions

DMS provides the following actions for ticket approvers:

ActionDescription
ApproveApproves the ticket and advances the process
RejectRejects the ticket and ends the approval process
RevokeTicket submitter withdraws a pending ticket
Change ownerTransfers the current approval to another user
Add pre-approval nodeInserts a custom approval node before the current node
Add post-approval nodeInserts a custom approval node after the current node
Approvers for new nodes must be existing DMS users. To add users to DMS, see User Management.

FAQ

  • Can I prevent users from approving their own tickets?

    Yes, but only for instances in Security Collaboration mode. Go to the top menu bar and click Operations Management, then select Configuration Management from the drop-down list. Search for "remove" to find the configuration item Whether to automatically remove the submitter from the approval node of the approval flow (effective when there are multiple approvers). Click Edit in the Actions column, set the value to Y, and click Confirm Change.

    After saving, DMS automatically removes ticket submitters from their own approval node if they appear as an approver — preventing self-approval.

  • How do I use one approval process for a specific database and approval-free for all others?

    This requires the instance to be in Security Collaboration mode. If it isn't, right-click the instance, then choose Control Mode > Security Collaboration > mysql default.

    Switching to Security Collaboration mode requires approval for all subsequent database change operations.

    Once the mode is enabled, configure a checkpoint rule using a DSL script. In the top menu bar, choose Security and Disaster Recovery (DBS) > Security Rules. On the Specification Management tab, select the ruleset for the target database engine type, find the rule, and click Edit. In the left pane, choose SQL Change > Checkpoints > Risk Approval Rule, click Add Rule, and enter a DSL script.

    The following example routes the aes database to approval template 173956 and skips approval for all other databases:

    if
        'aes' in @fac.ref_schema_names
    then
        @act.choose_approve_template 173956
    else
        @act.do_not_approve
    end

    Extend this expression as needed. For syntax details, see DSL syntax for security rules.