I’m trying to implement a transform against lifecycle states pulled from an authoritative source. As such, the requirement is the technical name must match the lifecycle name. I’m trying to combine a lower + replacement transform to accommodate lifecycle states with spaces (ex. On Leave becomes onleave)
“type”: “lower”,
“attributes”: null, → to lowercase all values to which transform applied to
“type”: “replace”,
“attributes”: {
“regex”: “on leave”,
“replacement”: “onleave” → after the transformation, replace with onleave
}
Unsure if I’m using the correct transforms, I don’t see a trim for spaces within the attribute and the transform isn’t working.
Once transform is created you can add into your identity profile by specifing also the attribute of your authorative source to map with lifecyclestate identity attribute.
I’ve tried creating the transform like you’ve mentioned but I receive this error when I try to save:
Failed to save ‘Lifecycle-OnLeave-Provisioning’: Unable to write file ***OnLeave-Provisioning’ (Error: Illegal attempt to modify id, name, type, internal.).
Also will this transform lowercase all attributes I specify in the lifecyclestate?
No worries, I’ve created a new transform with the framework you provided and it works. However, I noticed for the regex I needed to code “On Leave” instead of “on leave”. I thought the lower transform would run first followed by the replace
Yes On Leave is a static field coming from identity authoritative source. However I thought it’d be transformed to lower case before the ‘replace’ transform ran.
Static value on field from the authoritative source. I’m mapping an attribute from Workday to the lifecyclestate field on IDN. One of values of that attribute is “On Leave”