Updated on 2024-07-11 GMT+08:00

Managing the Recycle Bin

The recycle bin allows you to restore key data of DataArts Security that has been deleted by mistake. The key data includes permission set–related resources (workspace permission sets, permission sets, and common roles) and dynamic masking policies. The key data is determined by the importance, use frequency, and restoration difficulty of data.

Prerequisites

Permission set–related resources (workspace permission sets, permission sets, and common roles) or dynamic masking policies have been deleted in the last 30 days.

Notes and Constraints

  • Only the DAYU Administrator, Tenant Administrator, and data security administrator can restore data.
  • Managed MRS roles are existing roles in MRS data and are not defined in DataArts Security, so they will not be moved to the recycle bin when deleted.
  • After permission set–related resources and dynamic masking policies are deleted and moved to the recycle bin, their synchronization statuses will become unsynchronized. After they are restored from the recycle bin, they must be synchronized so that they can take effect.
  • Data in the recycle bin can be retained for a maximum of 30 days. Deleted data will be permanently cleared after a 30-day retention period.
  • A maximum of 1,000 permission sets or dynamic masking policies can be retained in the recycle bin of an instance. If that limit is exceeded, the oldest permission sets or dynamic masking policies will be automatically cleared first, on a first-in-first-out basis.
  • If Name Conflict Strategy is set to Add a timestamp to each name during data restoration and the name of the data to be restored already exists, a timestamp will be added to the name of the data to be restored. That is, the name of the restored data is in Original name_13-digit timestamp format. If the name of the data to be restored with the timestamp contains more than 64 characters, the original name will be truncated to ensure that the name of the data to be restored contains no more than 64 characters.
  • When you restore a permission set that was deleted by mistake from the recycle bin, the association between permission sets will be checked. If certain conditions are not met, the permission set cannot be restored. For example, if the parent permission set of a permission set has been deleted, the permission set can be restored only after its parent permission set is restored.
  • A maximum of 20 data records can be restored at a time.

Restoring Data in the Recycle Bin

  1. On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts Security.

    Figure 1 DataArts Security

  2. In the left navigation pane, choose Recycle Bin.

    Figure 2 Recycle Bin page

  3. On the Recycle Bin page, you can view and restore deleted permission set–related resources (workspace permission sets, permission sets, and common roles) and dynamic masking policies.

    The operations for restoring different types of data are similar. In the following operations, permission sets are used as an example to describe how to restore data.

  4. On the Permission Sets page, locate the permission set you want to restore and click Restore in the Operation column. Alternatively, select the permission sets you want to restore and click Restore above the list to restore the permission sets.

    Figure 3 Restoring data

  5. In the displayed dialog box, set Name Conflict Strategy to avoid a conflict between the restored data and existing data. Then click Yes.

    • Report an error: If the name of the data to be restored already exists, an error will be reported and the data will not be restored.
    • Add a timestamp to each name: If the name of the data to be restored already exists, a timestamp will be added to the name. That is, the name of the data to be restored is in Original name_13-digit timestamp format. If the name of the data to be restored with the timestamp contains more than 64 characters, the original name will be truncated to ensure that the name of the data to be restored contains no more than 64 characters.
      Figure 4 Setting Name Conflict Strategy

  6. After restoring workspace permission sets, permission sets, common roles, or dynamic masking policies, check them on corresponding pages and synchronize them to make them take effect.