Files
sailpoint-cli/cmd/transform

Transforms

The transforms command makes it easy to create, manage, and test transforms. To learn more about transforms, refer to Transforms.

List transforms

Run the following command to get a list of transforms available in your tenant.

sail transform list

This will produce a table of the available transforms.

transform list

Download transforms

Run the following command to download all of the transforms in your tenant and save them as json files on your computer. By default, this command will save the files in the current working directory. Use the -d flag to specify a path to an output directory.

sail transform download -d transform_files
transform download

This command will overwrite any existing files with the same name, so take care when running this in a directory that has modified transforms that have not yet been saved.

Create transform

Run the following command to create a new transform from a json file. Use the -f flag to specify the path to the json file.

sail transform create -f transform.json

Update transform

Run the following command to update a transform from a json file. Use the -f flag to specify the path to the json file.

sail transform update -f transform.json

A common workflow is to download the transforms first, make edits to the transform file, and then use the update command to save those edits in IdentityNow.

Preview transform

The preview command will show you the final output a transform using real account data from IdentityNow. This command is safe to use when testing as it will not modify account or identity details in IdentityNow.

Explicit input

Transforms that have explicit input will reference the account attribute to pull data from directly in the transform specification. The following flags are required to run this command.

  • -i The ID of the identity profile to use for the preview. You can find the ID of the identity profile you are interested in by using the get identity profiles API.
  • -a The name of the identity attribute to apply the transform to. This will depend on the attributes available in the identity profile.

Run the following command to preview an explicit input transform.

sail transform preview -i 2c91808876628b6201767b4bfea61dbb -a department -f transform.json

Implicit input

Transforms that use implicit input will rely on the identity profile mapping in IdentityNow to determine which account attribute will be used in the transform. These transforms require additional flags.

  • --implicit indicates that the transform to preview uses implicit input. It does not specify an account attribute directly in the JSON.
  • -n <transform-name> The name of the transform. The transform must be saved in IdentityNow before running this command.
sail transform preview -i 2c91808876628b6201767b4bfea61dbb -a department -n ToUpper --implicit

Output

The preview command will produce the following output.

Original value: adam.archer
Transformed value: ADAM.ARCHER

The Original value is the value of the identity attribute as of the last identity refresh. It is NOT the value of the account attribute as it exists on the source. This value may already have been transformed if the identity profile mapping has a transform mapped to the attribute.

The Transformed value is a result of the account attribute from the source being changed according to the transform specification. It is what the identity attribute will become if this transform is used in the identity profile.

Delete transform

To delete a single transform, run the following command.

sail transform delete <transform-id>

To delete a multiple transforms, use the following syntax.

sail transform delete <transform-id> <transform-id> <transform-id>

This command is commonly used in conjuction with the ls command to find the ID of the transform you wish to delete.

sail transform list
+--------------------------------------+--------------------------+
|                  ID                  |           NAME           |
+--------------------------------------+--------------------------+
| 03d5187b-ab96-402c-b5a1-40b74285d77a | WIFI Group               |
| 06d589cf-4d7d-4b40-8617-c221092ceb2c | Remove Diacritical Marks |
| 1f3a97cf-e58b-4fad-b2f2-0dcc19fb1627 | NETID                    |
+--------------------------------------+--------------------------+
sail transform delete 03d5187b-ab96-402c-b5a1-40b74285d77a

Override transforms endpoint flag

You can append the --transforms-endpoint flag, -e for short, to override the transforms endpoint. The default endpoint is "/v3/transforms".