I created this FirstValid Create provisiong policy. And it is working fine.
It gives new created account on source in “user_name”… “aduserprincipalname” or if attribute not existing, it gives the second attribute “uid”
{
“name”: “user_name”,
“transform”: {
“name”: “First Valid”,
“type”: “firstValid”,
“attributes”: {
“ignoreErrors”: “true”,
“values”: [
{
“attributes”: {
“name”: “adUserprincipalname”
},
“type”: “identityAttribute”
},
{
“attributes”: {
“name”: “uid”
},
“type”: “identityAttribute”
}
]
}
},
“attributes”: {},
“isRequired”: false,
“type”: “string”,
“isMultiValued”: false
},
However I need, that the “second” attribute is not simple “uid” . But a combination of “uid’” and string “@test.com”
So i tried to replace second attribute with “Concat” type like this…
But this doesn’t work. The created user/account has always empty “user_name” if the first attribute is not present. For me the FirstValid is working, but there is an issue somewhere in second attribute and concat type.
I cannot find what is wrong. maybe I am missing something obvious?
Also is there a way or a tool, that somehow checks the provisoining policy results? It is very tiresome to create always a new user, just to see if the provisioning policy is working or not.
{
"name": "user_name",
"transform": {
"name": "First Valid",
"type": "firstValid",
"attributes": {
"ignoreErrors": "true",
"values": [
{
"attributes": {
"name": "adUserprincipalname"
},
"type": "identityAttribute"
},
{
"type": "concat",
"name": "Concatenation transform",
"attributes": {
"values": [
{
"attributes": {
"Name": "uid"
},
"type": "identityAttribute"
},
"@test.com"
]
}
}
]
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}