Hi experts,
I am trying to set the manager value of a non-employee identity to manager’s manager when the current manager lifecycleState is inactive by using a transform on the identity profile. I have tried to write the transform using the types “static” and “conditional”. But both the transforms are not working as expected. Below are is the code:
Conditional Transform:
{
“name”: “Bot-Machine User Manager Change Transform”,
“type”: “conditional”,
“attributes”: {
“expression”: “$cloudLifecycleState eq inactive”,
“positiveCondition”: “$mgrOwner”,
“negativeCondition”: “$owner”,
“cloudLifecycleState”: {
“attributes”: {
“name”: “Cloud Services Deployment Utility”,
“operation”: “getReferenceIdentityAttribute”,
“uid”: “managerRef”,
“attributeName”: “lifecycleState.stateName”
},
“type”: “rule”
},
“mgrOwner”: {
“attributes”: {
“name”: “Cloud Services Deployment Utility”,
“operation”: “getReferenceIdentityAttribute”,
“uid”: “managerRef”,
“attributeName”: “managerRef.id”
},
“type”: “rule”
},
“owner”: {
“attributes”: {
“name”: “manager”
},
“type”: “identityAttribute”
}
},
“internal”: false
}
Static Transform:
{
“name”: “Machine-Bot User Manager Change Transform”,
“type”: “static”,
“attributes”: {
“cloudLifecycleState”: {
“attributes”: {
“name”: “Cloud Services Deployment Utility”,
“operation”: “getReferenceIdentityAttribute”,
“uid”: “managerRef”,
“attributeName”: “lifecycleState.stateName”
},
“type”: “rule”
},
“managersManager”: {
“attributes”: {
“name”: “Cloud Services Deployment Utility”,
“operation”: “getReferenceIdentityAttribute”,
“uid”: “managerRef”,
“attributeName”: “managerRef.id”
},
“type”: “rule”
},
“manager”: {
“attributes”: {
“name”: “manager”
},
“type”: “identityAttribute”
},
“value”: “#if($cloudLifecycleState == ‘inactive’)$managersManager#else$manager#end”
}
}
The attribute reference for non employee identity attributes looks like this:
“lifecycleState”: {
“stateName”: “active”,
“manuallyUpdated”: true
}
“managerRef”: {
“type”: “IDENTITY”,
“id”: “XXXXXXXXXXXXXXXXXXXXXXX”,
“name”: “Test.User”
}
Can someone please confirm if it is even possible to get identity’s manager’s manager using a transform and if so how? If not is there any alternative way to achieve this? Any leads or suggestions would be appreciated.