Transform - Manager reference

We want to get a reference to the manager’s email and I have found two methods of doing so.

  1. Using the static value: $identity.manager.attributes.email

  2. Using the Cloud Services Deployment Utility “getReferenceIdentityAttribute”

Are both these the same or is one the better approach? Will one be supported for longer?

Hi,

Cloud Services Deployment Utility “getReferenceIdentityAttribute” is the better approach

{
   "name": "Get Manager email",
   "type": "rule",
   "attributes": {
       "uid": "manager",
       "name": "Cloud Services Deployment Utility",
       "attributeName": "email",
       "operation": "getReferenceIdentityAttribute"
   },
   "internal": false
}