Combining options files
Published 03 November 2024
Separate options files can be used for each step of the anonymization process, as shown so far in this worked example.
However, it is possible to combine all of the options together into one file. This enables the same options file to be used for each of the classify, map and mask steps. Any bits of the options file that don't apply to that step are ignored.
- {
- "classifications": {
- "builtIn": {
- "enabled": [
- "FullNames"
- ],
- "disabled": [
- "Cities",
- "Countries",
- "CreditCardNumbers",
- "DatesOfBirth",
- "EmailAddresses",
- "FamilyNames",
- "GivenNames",
- "IPAddresses",
- "PassportNumbers",
- "PhoneNumbers",
- "PostCodes",
- "StreetAddresses",
- "UKCounties",
- "UKNationalInsuranceNumbers",
- "USSocialSecurityNumbers",
- "ZipCodes"
- ]
- },
- "custom": [
- {
- "type": "CompanyNames",
- "confidence": "High",
- "condition": "Column.Name contains 'Company' AND Column.Name contains 'Name'"
- }
- ]
- },
- "tables": [
- {
- "schema": "dbo",
- "name": "CustomerDemographics",
- "exclude": true
- },
- {
- "schema": "dbo",
- "name": "Shippers",
- "columns": [
- {
- "name": "Phone",
- "exclude": true
- }
- ]
- },
- {
- "schema": "dbo",
- "name": "Suppliers",
- "columns": [
- {
- "name": "ContactName",
- "type": "FamilyNames"
- },
- {
- "name": "ContactTitle",
- "dataset": "JobTitles"
- },
- {
- "name": "HomePage",
- "type": "Websites",
- "preserveNulls": true,
- "maxLength": 20
- }
- ]
- },
- {
- "schema": "dbo",
- "name": "Territories",
- "columns": [
- {
- "name": "TerritoryDescription",
- "dataset": "Cities"
- }
- ]
- }
- ],
- "datasets": [
- {
- "name": "CompanyNames",
- "type": "List",
- "values": [
- "Redgate Software",
- "Microsoft",
- "Google",
- "Amazon",
- "Apple",
- "Facebook",
- "Twitter"
- ]
- },
- {
- "name": "JobTitles",
- "type": "List",
- "values": [
- "CEO",
- "CTO",
- "Director",
- "Engineer",
- "Developer",
- "Designer",
- "Analyst",
- "Consultant"
- ]
- },
- {
- "name": "Websites",
- "type": "List",
- "values": [
- "https://www.example.com",
- "https://www.test.com",
- "https://www.google.com"
- ]
- }
- ],
- "settings": {
- "dateTimeFormats": [
- "YYYY-MM-dd",
- "yyyy-mm-dd HH:mm:ss"
- ]
- }
- }
Lines 2-49 show the configuration from the classification-options.json
file.
Lines 54-61 show the configuration from the mapping-options.json
file.
Lines 62-67 show the configuration from the classification-options.json
file.
Lines 70-79 show the configuration from the masking-options.json
file.
Lines 82-108 show the configuration from the mapping-options.json
file.
Lines 109-124 show the configuration from the masking-options.json
file.