# Trying to use reference type transform with in Cloud Services Deployment Utility/getReferenceIdentityAttribute rule

**URL:** <https://developer.sailpoint.com/discuss/t/trying-to-use-reference-type-transform-with-in-cloud-services-deployment-utility-getreferenceidentityattribute-rule/9823>\
**Category:** SHF Discussion and Questions\
**Tags:** rules, transforms\
**Created:** [March 30, 2023, 8:46pm UTC](https://developer.sailpoint.com/discuss/t/trying-to-use-reference-type-transform-with-in-cloud-services-deployment-utility-getreferenceidentityattribute-rule/9823 "2023-03-30T20:46:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeswanthg](https://avatars.discourse-cdn.com/v4/letter/y/5f8ce5/32.png) [@Yeswanthg](https://developer.sailpoint.com/discuss/u/Yeswanthg)\
**Post date:** [March 30, 2023, 8:46pm UTC](https://developer.sailpoint.com/discuss/t/trying-to-use-reference-type-transform-with-in-cloud-services-deployment-utility-getreferenceidentityattribute-rule/9823/1 "2023-03-30T20:46:46Z")

</div>

Hi Team,

I am trying to use reference type transform with in the Cloud Services Deployment Utility/getReferenceIdentityAttribute rule.

Anyone tried similar method ? Using Cloud Services Deployment Utility/getReferenceIdentityAttribute rule works for referencing the Manager’s DN but we have a delay on calculating Manager DN until next Identity refresh. This is not the usually the case if you have straight mapping for your Manager Name attribute.

We have a first valid on Manager Name.  
{  
“name”: “Calculate ManagerDN”,  
“type”: “static”,  
{  
“name”: “Calculate Manager”,  
“type”: “firstValid”,  
“attributes”: {  
“values”: [  
{  
“attributes”: {  
“attributeName”: “IDSupv”,  
“sourceName”: “SourceA”  
},  
“type”: “accountAttribute”  
},  
{  
“attributes”: {  
“attributeName”: “Manager”,  
“sourceName”: “SourceB”  
},  
“type”: “accountAttribute”  
}  
]  
},  
“internal”: false  
}

Now we have Manager DN with below Transform to get User’s Manager DN. Value populates correctly but only after next refresh on Identity.  
“managerDN”: {  
“attributes”: {  
“values”: [  
{  
“attributes”: {  
“uid”: “manager”,  
“name”: “Cloud Services Deployment Utility”,  
“attributeName”: “distinguishedname”,  
“operation”: “getReferenceIdentityAttribute”  
},  
“type”: “rule”  
},  
{  
“attributes”: {  
“value”: “NONE”  
},  
“type”: “static”  
}  
]  
},  
“type”: “firstValid”  
}  
}

To avoid the delay and calculate/populate Manager DN at the time of cube creation, tried couple of different ways to reference the Manager but doesn’t work. No errors either so I guess it is not the format.

```
  "managerDN": {
        "attributes": {
            "values": [
                {
                    "attributes": {
                        "uid": "$managerid",
                        "managerid": {
                            "attributes": {
                                "id": "Calculate Manager"
                            },
                            "type": "reference"
                        },
                        "name": "Cloud Services Deployment Utility",
                        "attributeName": "distinguishedname",
                        "operation": "getReferenceIdentityAttribute"
                    },
                    "type": "rule"
                },
                {
                    "attributes": {
                        "value": "NONE"
                    },
                    "type": "static"
                }
            ]
        },
        "type": "firstValid"
    }

```

Has anyone tried this before & worked ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:24pm UTC](https://developer.sailpoint.com/discuss/t/trying-to-use-reference-type-transform-with-in-cloud-services-deployment-utility-getreferenceidentityattribute-rule/9823/2 "2023-07-19T14:24:42Z")

</div>

Closed on July 19, 2023, 2:24pm UTC


