As more and more data protection laws arrive all over the world, ensuring compliance is a priority. OneTrust is a privacy management and marketing compliance company. Its services are used by organizations to comply with global regulations like GDPR.

This OneTrust input integration is to provide an input integration that can collect customer's consent data and load it into TD. Access to OneTrust data on the Treasure Data platform enables your marketing team to optimally enrich your data.


  • Basic knowledge of Treasure Data

  • Basic knowledge of OneTrust

  • GUID of a single Collection point to limit data, if not provided, get from all Collection Points.

Obtain your API Key

  1. Navigate to .

  2. Sign on to the OneTrust application if necessary.

  3. Select Add New.

  4. Type a name that you want for the Connection Name.

  5. Select Install.

Retrieving Collection Point GUID

  1. Navigate to
    The Collection Point screen displays.

  2. Select the corresponding Collection Point, the GUID is in the URL. For example:

Obtain your OAuth Access Token

Create a OneTrust token to store the Client ID and Secret.
This is short-lived token.

  1. Navigate to

  2. Select Add.

  3. Type a name and describe your token.

  4. Select appropriate Access Token Lifetime. The default lifetime is one hour.

  5. Navigate to

  6. Select your credential.

  7. Select Generate Token.

Use TD Console to Create Your Connection

Create a New Connection

When you configure a data connection, you provide authentication to access the integration. In Treasure Data, you configure the authentication and specify the source information.

  1. Open TD Console.

  2. Navigate to Integrations Hub >  Catalog.

  3. Search for and select OneTrust.

  4. Type the name of the access token that you created in the OneTrust application.

  5. Select Continue.

  6. Type a name for your connection.

  7. Select Done.

Transfer Your OneTrust Account Data to Treasure Data

After creating the authenticated connection, you are automatically taken to Authentications.

  1. Search for the connection you created. 

  2. Select New Source.

  3. Type a name for the data transfer.

  4. Select Next.
    The Source Table dialog opens.

  5. Edit the following parameters:



Data Type

  • Data Subject Profile. Fetch Data Subject Profile data.

  • Collection Point. Fetch Collection Point data.

Collection Point GUID (Optional)

GUID of a single Collection point to limit data, if not provided, get from all Collection Points.

Incremental Loading

Enables incremental report loading with new Start Time automatic calculation.
For example, if you start incremental loading with Start Time = 2014-10-02T15:01:23Z to 2014-10-03T15:01:23Z, the next jobs run new Start Time will be 2014-10-03T15:01:23

Start Time

(Required when select Incremental Loading)

For UI configuration, you can pick the date and time from supported browser, or input the date that suit the browser expectation of date time. For example, on Chrome, you will have a calendar to select Year, Month, Day, Hour, and Minute; on Safari, you need to input the text such as 2020-10-25T00:00.

For cli configuration, we need a timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, for example: "2014-10-02T15:01:23Z".

Incremental By Modifications of

  • Data Subject. Incremental by the last update of the data subject

  • Consent Information. Incremental by the last consent date of the consent information.


Data Settings

  1. Select Next.
    The Data Settings page opens.

  2. Skip this page of the dialog.

Data Preview 

You can see a preview of your data before running the import by selecting Generate Preview.

Data shown in the data preview is approximated from your source. It is not the actual data that is imported.

  1. Click Next.
    Data preview is optional and you can safely skip to the next page of the dialog if you want.

  2. To preview your data, select Generate Preview. Optionally, click Next

  3. Verify that the data looks approximately like you expect it to.

  4. Select Next.


Data Placement

For data placement, select the target database and table where you want your data placed and indicate how often the import should run.

  1.  Select Next. Under Storage you will create a new or select an existing database and create a new or select an existing table for where you want to place the imported data.

  2. Select a Database > Select an existing or Create New Database.

  3. Optionally, type a database name.

  4. Select a Table> Select an existing or Create New Table.

  5. Optionally, type a table name.

  6. Choose the method for importing the data.

    • Append (default)-Data import results are appended to the table.
      If the table does not exist, it will be created.

    • Always Replace-Replaces the entire content of an existing table with the result output of the query. If the table does not exist, a new table is created. 

    • Replace on New Data-Only replace the entire content of an existing table with the result output when there is new data.

  7. Select the Timestamp-based Partition Key column.
    If you want to set a different partition key seed than the default key, you can specify the long or timestamp column as the partitioning time. As a default time column, it uses upload_time with the add_time filter.

  8. Select the Timezone for your data storage.

  9. Under Schedule, you can choose when and how often you want to run this query.

    • Run once:
      1. Select Off.

      2. Select Scheduling Timezone.

      3. Select Create & Run Now.

    • Repeat the query:

      1. Select On.

      2. Select the Schedule. The UI provides these four options: @hourly, @daily and @monthly or custom cron.

      3. You can also select Delay Transfer and add a delay of execution time.

      4. Select Scheduling Timezone.

      5. Select Create & Run Now.

 After your transfer has run, you can see the results of your transfer in Data Workbench > Databases.

  • No labels