Random Alphanumeric
Overview
Use the random alphanumeric transform to generate a random string of any length, comprising both numbers and letters (both lowercase and uppercase).
Transform structure
The random alphanumeric transform only requires the standard type and name attributes:
{
"type": "randomAlphaNumeric",
"name": "Random Alphanumeric Transform"
}
Top-level properties (required)
-
type
string(required)
Must be set torandomAlphaNumeric. -
name
string(required)
The name of the transform as it will appear in the UI's dropdown menus. -
requiresPeriodicRefresh
boolean(optional)
Whether the transform logic should be reevaluated every evening as part of the identity refresh process. Default isfalse.
Attributes
The random alphanumeric transform uses the following structure:
{
"type": "randomAlphaNumeric",
"name": "Transform Name",
"attributes": {
"length": "32"
}
}
attributes (optional)
The attributes object contains the length configuration.
Optional
- length
string(optional)
An integer value specifying the required size/number of characters for the random string.- Must be a positive number
- Default is
32 - Maximum allowable value is
450characters
Examples
Since no explicit length is provided, this transform generates a 32-character random string, such as "VtPeE9WL56lMTlvfjr02KXqS3KtgDSuk".
Transform request body:
{
"type": "randomAlphaNumeric",
"name": "Random Alphanumeric Transform"
}
This transform generates a 10-character random string, such as "5GH2qsjU27".
Transform request body:
{
"attributes": {
"length": "10"
},
"type": "randomAlphaNumeric",
"name": "Random Alphanumeric Transform"
}