We are trying to create a “username generator” transformation for a provisioning policy with the aim of creating a unique alias during provisioning.
This is our first time doing it, and we simply tested uploading the policy code to the tenant using the ISC plugin for Visual Studio, and it uploads correctly:
@phil_awlings thank you very much for the response, it seems that the problem is indeed exactly that, and it is something recent that the technical support team is trying to resolve. We hope it gets fixed as soon as possible.
Alright, we are testing this and now it doesn’t get erased, but it still doesn’t display what we want. According to the first photo I uploaded to this thread, it should show the text “@[corresponding_lastName]” in the displayName value, right? Because it still doesn’t show it.
Hey @smenendezp
Aren’t you trying to generate this alias to be unique? Perhaps you may want a counter at the end of the last name in scenarios where 2 or more people have the same last name.
Indeed, my intention is to do something more complex, but first I wanted to try something simple to see if I was doing it correctly. As mentioned above, there is a reported error. We will try to perform tests and gradually increase the complexity of what we need, working exclusively from ISC Visual Studio to avoid the error until it is fixed by SailPoint.
No, but I was associating it with the “displayName” attribute in the graphical interface (it’s associated, I didn’t go back in and the error that erased the code didn’t occur again). I assumed that the value of what I am trying would appear in the “displayName” attribute:
This is my first time doing this, so I am learning. I am going to change “Alias_test” to an attribute that exists to see if it changes as I want.
I have tried it and it doesn’t work, maybe I am doing something wrong by doing it from the ISC plugin of Visual Studio. I set the name to “cloudLifecycleState,” which is an existing identity attribute. In “attributeName” within “identityAttribute” I am using “lastname,” which is also an identity attribute. After provisioning from the source, nothing is generated (it should display “@[corresponding_lastName]” but it shows the usual value):
I understand that even if I am not using the correct values, this is just a simulation to see if the information is created correctly and to learn how it works.
In the above code I am creating an account in AD (doesn’t matter where).
The value “name” is a field in AD (saMAccountName) that is being populated by the CREATE profile.
It appears that you are trying to populate an Identity.Attribute (cloudLifecycleState) rather than a Source.attribute. You need to choose an attribute on the source that you are creating to apply that transform to.
Or for a very simple transform where I want the Identity.Attribute “displayName” to be mapped to Source.Attribute that I am creating:
We have tried several combinations and it still doesn’t work. We also tried with ‘name’ and it doesn’t work. Additionally, we tried with ‘lastname’ and ‘lastName’ to rule out all options: