Configure data permissions

Updated at:

Data permission policies allow you to specify different approval rules for different security levels. This helps approvers focus on highly sensitive data and exempts public data from approval, reducing the permission review workload. This topic describes how to configure data permission policies.

Permissions

Only security administrators can add, edit, and delete data permission policies.

Usage notes

  • You can add a maximum of 50 approval rules.

  • You can determine whether permissions can be requested based on the rule scope (project, data domain), environment, table type, security level, and permission type. If permissions can be requested, you can select a built-in approval template, choose the approval-free option, which automatically grants permissions, or use a custom approval template.

  • You can modify the workflow, nodes, and approvers of an approval template. For more information, see View and Configure Built-in Approval Templates and Create and Manage Approval Templates.

Default rule

If a data table does not match any approval rule, the system applies a default built-in template based on the table type.

Add an approval rule

  1. In the top navigation bar of the Dataphin homepage, choose Management Center > Standard Settings.

  2. In the left-side navigation pane, choose Data Access > Data Permissions. On the Data Permissions page, click Add Approval Rule.

  3. In the Add Approval Rule dialog box, configure the parameters.

    Project/Data Domain/Data Source

    Parameter

    Description

    Rule Name

    Enter a name for the approval rule.

    Rule Scope

    Select Project, Data Domain, or Data Source.

    Project

    If the rule scope is set to Project, you can select All Projects or Specified Projects.

    • All Projects: The rule applies to all current and future projects within the tenant.

    • Specified Projects: Select one or more projects to which the rule applies.

    Data Domain

    If the rule scope is set to Data Domain, you can select All Data Domains or Specified Data Domains.

    • All Data Domains: The rule applies to all current and future data domains within the tenant.

    • Specified Data Domains: Select one or more data domains to which the rule applies.

    Note

    You must activate the Intelligent Development Edition to create data domains. The All Data Domains option includes tables that are not assigned to any data domain.

    Data Source

    If the rule scope is set to Data Source, you can select All Data Sources or Specified Data Sources. You can configure approval rules only for data sources that support data preview. For a list of supported data sources, see Operations Supported by Different Types of Collection Sources.

    • All Data Sources: The rule applies to all current and future data sources within the tenant.

    • Specified Data Sources: Select one or more data sources to which the rule applies.

    Environment

    If the rule scope is set to Project or Data Domain, you can select the Production or Development environment. The Basic environment is considered a production environment.

    Table Type

    • If the rule scope is set to Project, you can select Physical Table, Physical View, Meta Table (requires the real-time development module), Mirror Table (requires the real-time development module), or Materialized View.

    • If the rule scope is set to Data Domain, you can select Logical Table or Logical View (both require the Intelligent Development Edition).

    • If the rule scope is set to Data Source, you can select Data Source Table.

    Permission Type

    Available permissions vary by table type. The details are as follows:

    • For Logical Table, Logical View, Physical View, and Data Source Table: only Read Table Data is supported.

    • For Physical Table and Materialized View: Read Table Data, Modify Table Data, Delete Table, and Modify Table Structure are supported.

    • For Meta Table and Mirror Table: Read Table Data and Modify Table Data are supported.

    If you select all table types, Read Table Data, Modify Table Data, Delete Table, and Modify Table Structure are supported.

    Security Level

    You can select All Levels or Specified Levels. For information about how to create data security levels, see Create and Manage Data Classification.

    • All Levels: The rule automatically applies to any new security levels that are created.

    • Specified Levels: Select one or more data classification levels.

    Important
    • The data classification levels for tables range from L1 (Public) to L4 (Top Secret), in ascending order of sensitivity. You can also use custom data classification levels.

    • If you select All Levels, and a user is granted permission to a table that initially contains only L1 fields, the user will automatically gain access to L3 fields if they are added later. To prevent potential permission leaks, we recommend that you specify security levels.

    • The security level feature requires the data security module to be enabled.

    Permission Application

    Controls the approval template used for table permission applications. You can Enable or Disable this setting.

    • If permission applications are disabled, requests for these permissions are automatically ignored.

    • If permission applications are enabled, you must select an approval template. Options include Project Administrator Approval, Data Domain Administrator Approval, Security Administrator Approval, Resource Owner Approval, and Approval-free. You can also create a custom approval template. For more information, see Create and Manage Approval Templates.

    Table

    Parameter

    Description

    Rule Name

    Enter a name for the approval rule.

    Rule Scope

    Select Table.

    Compute Source Table/Data Source Table

    You can quickly search for and add compute source tables and data source tables to the approval rule. To add tables in bulk, click Batch Search and Add. In the Batch Search dialog box, you can perform an exact search for compute source tables by using the Project Name.Table Name or Data Domain.Table Name format. For data source tables, use the DB/Schema.table format. Separate multiple table names with a semicolon (;), a comma (,), or a line break (\n). You can add up to 100 tables.

    Note

    You can add approval rules only for data sources for which metadata collection is complete.

    Selected Tables

    Displays the selected compute source tables and data source tables, including their names, environments, table types, and associated data domains, projects, or data sources. You can search for tables by name or remove them from the list.

    Permission Application

    Controls the approval template used for table permission applications. You can Enable or Disable this setting.

    • If permission applications are disabled, requests for these permissions are automatically ignored.

    • If permission applications are enabled, you must select an approval template. Options include Project Administrator Approval, Data Domain Administrator Approval, Security Administrator Approval, Resource Owner Approval, and Approval-free. You can also create a custom approval template. For more information, see Create and Manage Approval Templates.

  4. Click OK to add the approval rule.

Approval rules

  1. The Data Permissions page lists your configured approval rules. The list includes the name, scope (data domain, project, or data source), environment, table type, permission type, security level, application status, and approval template for each rule.

  2. You can perform the following actions on an approval rule:

    Actions

    Description

    Sort Rules

    Click Sort, drag the rule to the desired position, and then click Done to save the new order.

    Note

    Rules are prioritized from top to bottom. The first rule that a permission request matches is applied.

    Edit

    You can modify the configuration of an approval rule. The process is the same as creating a new rule.

    Delete

    This action cannot be undone. Proceed with caution.