Transform - error for replaceALL

Hello all,
I am implementing a provisioning policy using replaceALL transform. On “Disable” action, the identity’s active directory phone number attribute needs to be replaced with empty value aka removed.

Here is the transform for telephoneNumber removal upon Disable action.

  {
            "name": "telephoneNumber",
            "transform": {
                "attributes": {
                    "table": {
                       ".*": " "
                           }
                },
                "type": "replaceALL"
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        }

The above is giving an error “unknown transform:ReplaceAll”

The below static transform does work though.

     {
            "name": "telephoneNumber",
            "transform": {
                "attributes": {
                    "value": "removed"
                },
                "type": "static"
            },
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        }

I am not sure what is missing in the replaceALL transform? Any leads would definetely help!

Can you try to use “replaceAll” instead of “replaceALL” and check?

The error is gone now! But the transform didn’t replace phone number with empty value.

You can still use the static transform with empty double quotes to pass the empty value considering you want to replace any values to empty.

{
  "attributes": {
    "value": ""
  },
  "type": "static"
}

I did try “value”:“” and it did not work hence I had to switch to replaceAll.

I never tried it, but I assume it will not take the empty value or null in the provisioning plan. So, you may either need to pass some default values like “none” or “000” instead of empty value or you need to use Before Provisioning rule to set the empty value to the account attribute.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.