i have made a transform that fetch user’s manager dn of AD.
It is working fine for existing users and fetching manager dn but when i onboarded new user( i am using flat file connector for mimiking the real workday for testing) so when i am onboaridng new users it is giving me error :
There was an exception while calculating the value for this attribute. Error during transformation for attribute: managerdn (Transform ID: manager name ccalc) Cause: Error rendering template: $identity.getManager().getLinksByAppIdOrName(“7b0f109967d041c690abd9”, null).get(0).getAttribute(“distinguishedName”)
and below is the transform i used :
{
“name”: “manager name ccalc”,
“type”: “static”,
“attributes”: {
“value”: “$identity.getManager().getLinksByAppIdOrName("7b0f1099690abd946", null).get(0).getAttribute("distinguishedName")”
},
“internal”: false
}
hey krishna i used this as well but that wasnot giving me any error but always showed blank in managerdn while previwing it in identity priflie i used this :
so i defined two attr in identuty profile one is addn and one is manager dn where both on both attr sources are active directory and attributes are distinguisdhed name i mapped with and on managerdn i applied getrereceidenattr rule but i got addn populated but managerdn is not populating
it is populating for existing users who got AD account already but when i am onboaridng new users the transform fails and as a result (AD account dont get provison as BR)
yes but the problem is for existing users who have ad account (both user and his manager) the transform is runnung good but when we are onboarding new user from workday then it is having error
When an identity’s manager is not yet created then that identity will not have manager DN, but I don’t think manager attribute is mandatory to create AD account.
For a new identity if manager exists already, first Identity will be created with all attributes defined in Identity Profile. So you should have managerDN already for that Identity if manager has AD account already.
You need to check
→ If newly created Identity has manager or not
→ If manager exists, manager has AD account or not
→ If manager has AD account then manager should have AD DN attribute populated
and suppose if the user and his manager both got hired on same time then they will come together in sailpoint through aggreagtion from workday then how that case can be covered . i was talking about this scenario . But usually it don’t happen maager is an old employee or user which already exist in the organization
Thanks @KRM7 a lot i was onboarding user and his manager at the same time through feed file but when i made the already existing user as their manager then the trasnform worked and i got ad dn and manger dn both that i mapped with create AD account in AD as idetnityt attribute thanks