Skip to main content

User Guide

Creating a Schema from JSON

You can import and create Schemas from other Schema, Policy, or Job JSON configuration files that were exported from the Privitar Platform. Once the Schema is imported, you can review the Schema and make any changes to the tables and columns by editing the existing tables or adding new tables. To import a Schema directly into Privitar without making any changes to the Schema, see Importing an Exported Schema.

To create a Schema from JSON, follow these steps:

  1. Select Schemas from the Navigation sidebar. The Schemas page is displayed.

  2. Click on Create New Schema. The New Schema window is displayed.

  3. Enter a name for the new Schema in the Name field.

  4. Select Import from JSON from the Import tables list box. The Import from JSON window is displayed.

  5. Click on Browse to select a JSON file to upload, or drag and drop a JSON file directly on to the Import Schema File box.

    The JSON file is read and the Import from JSON window is updated with the tables that are included in the imported Schema. The tables are shown in the left-hand pane.

    Use the Eye icon to the right of a table to inspect the contents of a table. For example:

    UUID-fabea6f9-3cab-f8b4-9b44-1855ecfb6ab9.png
  6. Pick the tables to import by selecting the checkbox alongside each table. The selected table is added to the list of tables to import in the right-hand pane.

  7. Click on Import Tables to add the selected table definitions to the Schema.

    The tables are imported and the New Schema window is updated with the tables that have been imported.

  8. Click on a table in the left-hand pane to preview its definition on the right, and to make any edits to any of the columns included in the table. For more information about the editing actions and how to finalize the Schema definition, see Adding Tables and Columns to a Schema.

  9. Click on Save to save the new Schema.

    The new Schema is added to the list of Schemas on the Schemas page.

Note

The imported JSON file has to conform to the specific Privitar configuration format. It is not possible to import files from previous versions of the Privitar Platform.