How to get information from one identity through another identity

Hello everyone

I have a field in my identity, where I point to the identifier of another employee

Ex: attribute “Superintendent”
I need a transform where I get identity through this attribute “Superintendent” and then a get attribute to get the Superintendent’s work center

Is it possible?

I tried something like this but it didn’t work the way I expected

{
“name”: “superintendent”,
“type”: “static”,
“attributes”: {
“value”: “$identity.getAttribute("superintendent")”
},
“internal”: false
}

This way I developed the transform, it only takes the superintendent’s identifier, but I need it to take the cost center attribute of that superintendent.

@guilherme_sec You’re looking for the Get Reference Identity Attribute primitive.

Hi @guilherme_sec,

If you are trying to pull the manager details, that is correlated in your source of truth,
you can try something like this as mentioned here :

{
  "type": "firstValid",
  "attributes": {
    "values": [
      "$identity.getManager().getStringAttribute('workcenter')",
      "no manager exists"
    ]
  }
}

If it’s not a user manager (not correlated), you will need to pass the uid of the user in the transform mentioned by @sup3rmark

{
  "attributes": {
    "name": "Cloud Services Deployment Utility",
    "operation": "getReferenceIdentityAttribute",
    "uid": "PASS THE superintendent's UID value here",
    "attributeName": "email"
  },
  "type": "rule",
  "name": "Get Reference Identity Attribute Transform"
}