# What is a transform or rule to get the user's manager name based on manager mail id?

**URL:** <https://developer.sailpoint.com/discuss/t/what-is-a-transform-or-rule-to-get-the-users-manager-name-based-on-manager-mail-id/10615>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, sailpoint-identity-security\
**Created:** [April 27, 2023, 11:08am UTC](https://developer.sailpoint.com/discuss/t/what-is-a-transform-or-rule-to-get-the-users-manager-name-based-on-manager-mail-id/10615 "2023-04-27T11:08:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ranjith2000](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@Ranjith2000](https://developer.sailpoint.com/discuss/u/Ranjith2000)\
**Post date:** [April 27, 2023, 11:08am UTC](https://developer.sailpoint.com/discuss/t/what-is-a-transform-or-rule-to-get-the-users-manager-name-based-on-manager-mail-id/10615/1 "2023-04-27T11:08:55Z")

</div>

hi Team,

can any one below query ?

in manager field i get the value like manager email address . instead of mail address i need to populate his name . can anyone help with the transform rule for this scenario

**how can i convert into email address to his name using transform rule ?**

Thanks in advance

---

<div class="post-metadata">

**Author:** ![wimvandijck](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/wimvandijck/32/24103_2.png) [@wimvandijck](https://developer.sailpoint.com/discuss/u/wimvandijck)\
**Post date:** [April 27, 2023, 2:29pm UTC](https://developer.sailpoint.com/discuss/t/what-is-a-transform-or-rule-to-get-the-users-manager-name-based-on-manager-mail-id/10615/2 "2023-04-27T14:29:15Z")

</div>

Try this:

```auto
{
  "attributes": {
    "name": "Cloud Services Deployment Utility",
    "operation": "getReferenceIdentityAttribute",
    "uid": "manager",
    "attributeName": "email"
  },
  "type": "rule",
  "name": "Get manager name from email"
}

```

(see [Get Reference Identity Attribute | SailPoint Developer Community](https://developer.sailpoint.com/idn/docs/transforms/operations/get-reference-identity-attribute) )

Mind you, if it is the `manager` field on the identity cube you want to change, that field is auto calculated to point to the name of the identity of the manager.

If you need a different field, you might want to use a separate attribute for this.

---

<div class="post-metadata">

**Author:** ![Ranjith2000](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@Ranjith2000](https://developer.sailpoint.com/discuss/u/Ranjith2000)\
**Post date:** [April 27, 2023, 4:22pm UTC](https://developer.sailpoint.com/discuss/t/what-is-a-transform-or-rule-to-get-the-users-manager-name-based-on-manager-mail-id/10615/3 "2023-04-27T16:22:26Z")

</div>

Hi Wim,

I have used the accountName but still manager’s email id is getting populated in the users manager attribute field

{  
“name”: “manager UID”,  
“type”: “rule”,  
“attributes”: {  
“name”: “Cloud Services Deployment Utility”,  
“operation”: “getReferenceIdentityAttribute”,  
“uid”: “manager”,  
“attributeName”: “accountName”  
},  
“internal”: false  
}

---

<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/what-is-a-transform-or-rule-to-get-the-users-manager-name-based-on-manager-mail-id/10615/4 "2023-07-19T14:24:54Z")

</div>


