arrow-left
All pages
gitbookPowered by GitBook
1 of 1

Loading...

Email (EmailGenerator)

The Email generator scrambles the characters in an email address. It preserves formatting and keeps the @ and . characters.

hashtag
Link object structure

The Email generator does not support linking. It can be self-consistent, but not consistent with another column. You cannot configure differential privacy.

The metadata object is populated from the EmailMetadataarrow-up-right object. You can configure:

  • The domain to use for all of the email addresses in the destination database.

  • Domains for which to keep the email addresses as is in the destination database.

  • Whether to replace invalid email addresses with valid ones.

hashtag
Example replacement

In the following example replacement for the Email generator, all of the destination email addresses use gmail.com as the domain.

Source email addresses from yahoo.com are not changed.

Invalid email addresses are replaced.

The generator is not consistent.

{
  "schema": "string",
  "table": "string",
  "column": "string",
  "path": "string",  //JSON fields only
  "dataType": "string",  //MongoDB, Amazon DynamoDB, and JSON fields only
  "metadata": {
    "presetId": "string",
    "generatorId": "EmailGenerator",
    "domain": "string",
    "excludedDomain": "string",
    "replaceInvalidEmails": boolean,
    "isConsistent": boolean,
    "encryptionProcessor": "x-on", //To use configured Structural data encryption
    "customValueProcessor": "string"  //If custom value processor applied
  }
}
{
  "name": "email_address",
  "schema": "public",
  "table": "users",
  "links": [
    {
      "schema": "public",
      "table": "users",
      "column": "email_address",
      "metadata": {
        "presetId": "EmailGenerator",
        "generatorId": "EmailGenerator",
        "domain": "gmail.com",
        "excludedDomain": "yahoo.com",
        "replaceInvalidEmails": true,
        "isConsistent": false
      }
    }
  ]
}