Add And Manage Discovery Results

Updated at:

The system automatically generates discovery results based on configured discovery rules and lineage-based inheritance settings. You can also manually specify discovery results or bulk import them using an Excel file. This topic describes how to add and manage discovery results.

Limits

Data source tables do not support the automatic generation of discovery results through rule-based scanning or lineage-based inheritance. You can manually add or bulk import discovery results for data source tables.

Permissions

  • Security administrators and custom global roles with the Identification Result-Management permission can add and manage all identification results.

  • Project administrators can manage discovery results for tables in the projects they are responsible for. This includes creating and editing discovery results, enabling or disabling the status, and locking discovery rules.

  • Data table owners can manage discovery results for the tables they own. This includes editing discovery results, enabling or disabling the status, and locking discovery rules.

Identification methods

  • Automatic scanning: Generates discovery results based on scheduled scan times and real-time scan settings.

  • Manual addition: You can bulk import discovery results into Dataphin.

  • Lineage-based inheritance: Downstream fields automatically inherit discovery results from their direct upstream fields based on various inheritance scenarios and rules.

Manually add discovery results

  1. In the top menu bar of the Dataphin homepage, select Governance > Data Security.

  2. In the left navigation bar, select Data Identification > Identification Result. On the Identification Result page, click the Manually Add button.

  3. On the Add Manually page, configure the parameters.

    Parameter

    Description

    Addition policy

    Deduplication policy

    For handling duplicate identification records between the current upload and existing records, three policies are supported: Overwrite existing identification results, Overwrite only existing automatic identification results, and Keep existing identification results.

    • Overwrite existing discovery results: When a new field matches an existing field, this option replaces the existing result with the current one and marks it as manually specified.

    • Overwrite auto-discovered results only: If a field matches an existing, unlocked result, this option replaces it with the new one and marks it as manually specified.

    • Keep existing discovery results and do not update: When a new field matches an existing field, this option keeps the existing result and discards the current one.

    Added records

    • Add by Table: Click Add by Table, configure the parameters in the Add by Table dialog box, and click OK.

      • Data Table: Select up to 200 data tables. Project administrators can select all data tables in the projects they manage. Domain architects can select all data tables in the domains they manage. Data table owners can select the data tables they own.

        The filter feature is available only in the Intelligent R&D Edition. You can click the Filter icon to filter data tables by domain, project, data source, or table type.

      • Table Fields: Select up to 200 fields from the chosen data tables.

      • Configure unified category: This option is disabled by default. If enabled, a single data category is assigned to all selected fields. You can modify this assignment later in the added records list.

    • Search: Search for added data tables by table name or description. Searching by description is available only for data source tables.

    • Added Records: Displays information about the data table, table field, data category, data security level, and data masking status. You can modify the data table, table field, data category, and status. In the Actions column, you can also Continue to configure field recognition rules for this table and Delete.

      • Status: Changes to the status take effect immediately. If enabled, the discovery result is included in subsequent processes such as display, statistics, and data masking. If disabled, the discovery result for the field has no effect.

      • Continue to configure field discovery rules in this table: Allows you to add new fields and configure their data categories within the current table.

      • Delete: Deletes the data table in this row.

    • Batch operations: You can perform batch operations on added data tables, such as Change Data Category, modifying Effective Status, and Delete.

  4. After you confirm that the configuration information is correct, click Upload to manually add the identification result.

Manage discovery results

The Identification Result page includes Effective identification results that are generated by running identification rules or automatically inherited based on data lineage, and Pending identification results that are inconsistent with existing online results and require manual confirmation.

Effective

  1. The list of effective discovery results displays information for each added result, including the table name, field, asset source, data category, data security level, data masking status, and identification method.

    Asset Source: For a Dataphin table, this shows the associated project and domain. For a data source table, this shows the associated database/schema and data source.

  2. You can search for asset objects by using various criteria. You can also use keywords to search for all discovery results within a specific data category.

    • Dataphin table: You can perform a quick search by using keywords for the table, field, project, or domain. You can also perform a precise search by filtering on data category (or unspecified category), data security level, data domain, project, data masking status, lock status, or identification method.

    • Data source table: You can perform a quick search by using keywords for the table, database/schema, or table description. You can also perform a precise search by filtering on data category (or unspecified category), data security level, data source, data masking status, lock status, or identification method.

  3. You can perform the following operations on a specific discovery result.

    Actions

    Description

    Enable or disable data masking status

    The data masking status controls whether data masking policies apply to the current discovery result. You can click the switch in the Data Masking Status column or click More > Enable Masking/Disable Masking at the bottom of the page to enable or disable the status. The change takes effect immediately. When enabled, the system masks the field data based on data masking rules and the default data masking policy. If disabled, the field is not masked even if it matches a data masking rule. However, a corresponding identification record is still generated, and the system uses the match score to determine the appropriate permission approval process.

    Note

    You can enable the data masking status only for MySQL, Oracle, and SAP HANA data sources for which a metadata collection task is configured. When enabled, the system uses built-in engine functions to rewrite and mask data in the data source table fields.

    Discovery result recommendations

    If the identification records for the current field contain an identification result with a higher match score than the currently effective one, a Recommended label is displayed. You can click the Recommended label after the data category name or click View Identification Details in the Actions column to open the Field Identification Details dialog box. In this dialog box, you can view the more suitable identification result recommended by the system and decide whether to use the recommended result based on your business needs.

    View discovery details

    Displays the basic information, effective result, and identification records for the field.

    • Basic Information: Displays the table name, field name, and sample data (if data sampling is enabled).

    • Effective Result: Displays the effective data category for the current field and the corresponding data security level, identification method, priority, actual match score, category modification time, and update time. You can perform the Specify Data Category (if not configured) and Edit Identification Result (if configured) operations on the identification result.

      • data security level: Displays the latest security level configuration. You can view the security level at the time of arbitration to decide if changes are needed.

      • priority: Displays the latest priority configuration. You can view the priority at the time of arbitration to decide if changes are needed. Priority 1 is the highest. For rules with the same priority, the one with the more recent update time takes precedence.

      • Specify data category: If the currently applied classification is automatically inherited and the inheritance policy is to inherit only sensitivity levels and not categories, a data category may not be specified. We recommend that you specify a data category in this case. Otherwise, data masking rules may not be matched. In the Specify Data Category dialog box, select a data category. You can also use the data category recommended by the system.

        Note

        The data security level of the specified category must be the same as the currently effective data security level. Otherwise, you cannot specify the category directly. You can change the data category by editing the discovery result.

      • Edit discovery result: Modifies the effective discovery result. For more information, see Edit discovery result.

    • Identification records: Displays the data category, data security level, identification method, priority, actual match score, category modification time, and update time.

      • If an identification record for the current field has a higher match score than the currently effective result, a recommendation icon appears in the upper-left corner of the data category name. You can click One-click Apply in the upper-right corner to set it as the effective discovery result.

        Precedence rules for discovery results:

        • For automatically discovered results, the scan rule priority order is as follows, from high to low: data category priority > data security level > update time > match score > data category modification time. The system prompts you when a more suitable data category is found.

        • For automatically inherited results, the highest data security level has the highest priority. If multiple results have the same data security level but different data categories, the priority order is as follows, from high to low: data category priority > identification record update time > category modification time. The system prompts you if a more suitable data category is found.

      • data security level: Displays the latest security level configuration. You can view the security level at the time of arbitration to decide if changes are needed.

      • priority: Displays the latest priority configuration. You can view the priority at the time of arbitration to decide if changes are needed. Priority 1 is the highest. For rules with the same priority, the one with the more recent update time takes precedence.

      • Set as effective result: If you set a data category from the identification records as the effective result, the identification method changes to manually specified and is not affected by subsequent automatic discovery results.

    Edit discovery result

    Click Edit in the Actions column or click Edit at the bottom to modify the identification result. The supported methods are Automatic Identification/Inheritance and Manual Specification.

    • Automatic Discovery/Inheritance: Selecting this option deletes any manually specified result for the field. The system then applies the automatically discovered or inherited result with the highest match score. This result will be updated automatically if a new result with a higher match score is found in the future.

      Note

      When you batch modify results to use automatic discovery, the system automatically skips any data source tables because they do not support automatic discovery.

    • Manual specification: If you select this option, the current data category is locked, and a lock icon automatically appears in the list. The result will not be overwritten by other automatically discovered or inherited results. You can also use the data category recommended by the system.

    • Synchronously enable data masking: When selected, this option sets the current discovery result as the effective result and enables its data masking status.

    Lock the current discovery result

    Click Lock in the Actions column or at the bottom of the page to lock the discovery result. You can only lock results that are effective through automatic discovery or inheritance and have a specified category. After locking, the system creates a manually specified identification record identical to the current result and sets it as the effective result. This locked result is immune to subsequent automatic discovery or inheritance.

    Delete the discovery result

    Click Delete in the Actions column or click More > Delete at the bottom of the page to delete the discovery result. This action also deletes all associated identification records. You can either correct an incorrect discovery result or modify the discovery rules and rescan to generate a new one.

Pending

Note
  • Identification results generated by rule execution and results automatically inherited based on data lineage enter the pending list only if the Automatically Apply Identification Results option is disabled in the rule execution configuration.

  • If a newly generated discovery result is identical to the online result (same field source, data category, and data security level), it becomes effective automatically and does not enter the pending list.

  • If a field has both an automatically discovered result and an automatically inherited result, the pending list prioritizes and displays the automatically discovered result.

  1. The pending list displays information such as table, field, asset source, data category, data security level, and identification method.

    Asset Source: For a Dataphin table, this shows the associated project and domain. For a data source table, this shows the associated database/schema and data source.

  2. You can search for different asset objects based on various criteria, or click Refresh Identification to synchronize the latest pending identification results.

    • Dataphin table: You can perform a quick search by using keywords for the table, field, project, or domain. You can also search for all discovery results that correspond to a specific data category by using keywords. In addition, you can perform a precise search by filtering by data category (or unspecified category), data security level, data domain, project, or identification method.

    • Data source table: You can perform a quick search by using keywords for the table, database/schema, or table description. You can also search for all discovery results that correspond to a specific data category by using keywords. In addition, you can perform a precise search by filtering by data category (or unspecified category), data security level, data source, or identification method.

  3. You can perform the following operations on a specific pending discovery result.

    Actions

    Description

    View discovery details

    Click View Recognition Details in the Actions column to view the basic information, pending results, effective results, and expired recognition records for the field recognition.

    • Basic Information: Displays the table name, field name, and sample data (if data sampling is enabled).

    • Pending Result: Displays the pending data category, data security level, and identification method for the current field.

    • Effective Result: Displays the effective data category for the current field and its corresponding data security level, identification method, priority, actual match score, category modification time, and update time.

    • Invalidated Identification Records: Displays the identification records for the current field that have become invalid.

      • If discovery results are generated multiple times for the same field, only the most recent result is displayed in the pending list. Previously generated results are marked as invalid.

      • If a field has both an automatically discovered result and an automatically inherited result, the pending list displays only the automatically discovered result due to its higher priority. The automatically inherited result is marked as invalid.

    Apply

    Click Apply in the Actions column, or select multiple records in the list and click Apply at the bottom, to apply the pending identification results.

    • If the selected identification result has no pending lineage-based inheritance results for downstream fields, in the Prompt dialog box, click OK to complete the operation.

    • If the selected identification result has pending lineage-based inheritance results for downstream fields, view the pending lineage-based inheritance results in the Prompt dialog box, including the table, field, asset source, inherited field, inherited category, and inherited sensitivity level, and select how the changes take effect.

      • Cancel: Cancels the current application.

      • Apply to selected fields only: Makes only the selected discovery result effective. The lineage-based inheritance results in the dialog box will not take effect.

      • Apply all: Makes the selected discovery result and all lineage-based inheritance results in the dialog box effective.

    Note

    When you apply results in a batch, if all selected results have downstream lineage-based inheritance results, the dialog box displays all downstream results. The Inherited Field column distinguishes the source of each result.

    Discard

    Click Deprecate in the Actions column, or select multiple records and click Deprecate at the bottom of the list. In the Prompt dialog box, click OK to deprecate the selected identification results. Deprecated identification results will no longer take effect and will not be added to the effective list.

    If a direct downstream field of the current field has a pending record with the identification method of automatic inheritance, the dialog box also displays this lineage-based inheritance result for you to confirm the discard scope.

    Modify

    Click Modify in the Actions column, or select multiple records in the list and click Modify at the bottom, to modify the data category for pending identification results.

    • Modify a single item: In the Modify Identification Result dialog box, modify the identification category, and click OK.

    • Batch modification: In the Batch Modify Identification Results dialog box, you can view the selected identification results, including table, field, data source, and category information. Select Specify Data Category and click OK to change the data category of all selected fields to the specified one.

Bulk import discovery results

  1. On the Identification Result page, click Bulk Import to open the Bulk Import Identification Result dialog box.

  2. In the Bulk Import Identification Results dialog box, configure the parameters.

    Parameter

    Description

    Download template

    If you do not have a template, click the file name to download the .xlsx file. The system provides different templates based on the asset type. If you already have a template, you can proceed to upload the file and start validation.

    Configuration file

    Upload the template that corresponds to your asset type. For data source tables, you must first collect the relevant assets. You can upload only one file at a time.

    • Only .xlsx files are supported. A single Excel file cannot exceed 1,000 rows.

    • The file size cannot exceed 10 MB.

    • Follow the instructions in the template when you fill it out.

      • Full name of Dataphin table: For a physical table, use the format project_name.table_name. For a logical table, use the format domain_name.table_name.

      • Full name of data source table: For a specified data source, use the format db/schema.table_name.

    • You can add or modify only the discovery results for which you have management permissions.

      Security administrators and custom global roles with Identification Result-Management permissions can upload all tables. Project administrators can upload only tables in the projects they manage. Table owners can upload only the tables they own.

  3. After a file is uploaded, the system validates the file based on its specifications. After the validation is successful, click Start Validation to perform different validations on the imported file based on its asset type.

    • Dataphin table: Validates that the full table name, field name, and category directory/data category are not empty, and that the column order is correct.

    • Data source table: Validates that the data source name, data source environment, full table name, field name, and category directory/data category are not empty, and that the column order is correct.

    • Validates that you have permission to manage discovery results.

  4. After the validation passes, the import results page is automatically displayed.

    Parameter

    Description

    Compatibility policy

    You can select from two compatibility policies to handle conflicts between the current upload and existing records: Duplicate Record Handling and Data Masking Status.

    • Duplicate record handling: A policy for handling conflicts when an uploaded discovery result duplicates an existing one. Options are to overwrite all online discovery results, overwrite all unlocked online discovery results, or keep existing online discovery results and skip updates.

      • Overwrite all online discovery results: When a new field matches an existing field, this option replaces the existing discovery result (both automatic and manual) with the current one and marks it as manually specified.

      • Overwrite all unlocked online discovery results: When a new field matches an existing field and the existing identification method is automatic, this option replaces the discovery result with the current one and marks it as manually specified. It does not overwrite results that were manually specified.

      • Keep existing online discovery results and skip updates: When a new field matches an existing field, this option keeps the online result and discards the current one.

    • Data masking status: A policy for handling cases where the uploaded or existing discovery result has a disabled data masking status. You can choose to either retain the existing configuration for updated results and set new results to enabled, or set both new and updated results to enabled.

      Note

      The system cannot apply category- or security level-based data masking to fields with a disabled status. However, a corresponding identification record is still generated, and the system arbitrates and assigns the appropriate permission approval process based on the match score.

    Validation result

    Displays information about records that passed validation, failed validation, or are duplicates.

    • Validation passed: Shows the records that passed validation, including their original row number, table, field, data category, and data security level.

    • Validation Exceptions: This section displays the exception records for files that failed validation, and automatically adds an Error Message column. You can correct the file based on the error messages and re-import it.

    • Duplicate records: Shows records that are duplicates within the uploaded file or that duplicate existing online discovery results. This includes the original row number, table, field, imported data category, online data category, and a duplication prompt.

    • You can click the Download Verification Records button to download the corresponding verification records as an Excel file.

  5. Click Start Import to import the identification results.

    Closing the dialog box does not stop the import task; it continues running in the background. You can view the import history by clicking batch operation records on the discovery results list page.

View import history

  1. On the Identification Result page, click the dropdown arrow next to Bulk Import and select Batch Operation Records to go to the Import History panel.

  2. In the Import History panel, view the import history of identification results.