The Generate US SSN masking activity allows you to generate social security numbers specific to the United States.
Table of contents |
---|
Usage |
Example |
Properties |
To use the Generate US SSN masking activity, it must be placed inside a table masking activity or a similar activity that iterates over data. Once placed, select the property you want to mask. Next, you must select the algorithm used to generate new social security numbers. The following algorithms are available:
You must also choose the social security number format, i.e. whether you want to use delimiters in the social security numbers or not. The following formats are available:
Additionally, you can set the EnforceUnique property to make sure every generated credit card number is unique.
In this example we want to mask US social security numbers in the Customer table, so first we place the Account masking activity and put the Generate US SSN masking activity within it. Once placed, we select the SocialSecurityNumber property. We choose Mixed as the algorithm and as the format we select the one that uses delimiters. Other properties are left as they are.
Figure 1: Generating US social security numbers
Property group | Property name | Description | Example |
---|---|---|---|
Input properties | Algorithm | The algorithm used for generating social security numbers. | Write Ekobit.BizDataX.DataMasking.DataGenerators.US.USSocialSecurityNumberAlgorithm.Mixed , Ekobit.BizDataX.DataMasking.DataGenerators.US.USSocialSecurityNumberAlgorithm.Randomization , Ekobit.BizDataX.DataMasking.DataGenerators.US.USSocialSecurityNumberAlgorithm.AreaCode or choose property from the dropdown list |
DataItemProperty | The property to mask. | Write x => x.SocialSecurityNumber or choose property from the dropdown list |
|
EnforceUnique | If true, random selection should select unique values. | true or false |
|
UseDelimiter | Whether delimiter should be used when generating social security numbers. | true or false |
|
Input: Filter | Filter | Expression used for filtering records - only filtered items will be masked. | x => x.SocialSecurityNumber.EndsWith("00") |
SkipDefaultValues | If true, default values will be omitted in masking (i.e. null values are not masked). | true or false |
|
Input: Repeating | RepeaterId | The ID of the repeater that will be used to detect repeating and save results when masking item key repeats. | SocialSecurityNumberRepeater |
RepeatingKey | Key to use for repeating detection. | Write x => CompositeKey.Create(x.SocialSecurityNumber) or choose properties from the pop-up window |
|
Misc | DisplayName | Display name of the activity in the workflow. | Pick US SSN |
Result | Contains the masking definition object. It's a part of the masking infrastructure and should be ignored. | - |
BizDataX Documentation © Built by Ekobit. All rights reserved.
https://www.ekobit.com/ https://bizdatax.com/ https://bizdatax.com/support/