In this rule in the uid attribute you must have normally a value of uid attribute of an identity. But Sailpoint give a special key “manager” for reference automatically identity Manager and get attribute specified in key attributeName.
In your case as @jesvin90 say be sure that manager correlation is define in your auhorative source. Because by defining in Identity Profile i don’t think the manager will be promote.
For example if you test :
{
"type": "rule",
"attributes": {
"name": "Cloud Services Deployment Utility",
"operation": "getReferenceIdentityAttribute",
"uid": "yourUid",
"attributeName": "upn"
}
}
By replacing yourUid by an harcoded uid it’s will work.
You can also get your identities by using search-post | SailPoint Developer Community :
{
"query": {
"query": "*"
},
"sort": [
"id"
],
"indices": [
"identities"
]
}
And looking if “manager” object are populated for an identity. If manager object not exist or is null that mean you not really reference the manager as Identity object but only the string with format “Firstname lastname (email)” you must then define a manager correlation rule in your authorative source. And your transform will be work with :
{
"name": "Cloud Services Deployment Utility",
"operation": "getReferenceIdentityAttribute",
"uid": "manager",
"attributeName": "upn"
}