# Azure AD connector setup to retrieve account custom attributes in azure AD

**URL:** <https://developer.sailpoint.com/discuss/t/azure-ad-connector-setup-to-retrieve-account-custom-attributes-in-azure-ad/2787>\
**Category:** SHF Discussion and Questions\
**Created:** [January 25, 2022, 9:04am UTC](https://developer.sailpoint.com/discuss/t/azure-ad-connector-setup-to-retrieve-account-custom-attributes-in-azure-ad/2787 "2022-01-25T09:04:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dacom](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@Dacom](https://developer.sailpoint.com/discuss/u/Dacom)\
**Post date:** [January 25, 2022, 9:04am UTC](https://developer.sailpoint.com/discuss/t/azure-ad-connector-setup-to-retrieve-account-custom-attributes-in-azure-ad/2787/1 "2022-01-25T09:04:34Z")

</div>

Hello,

Our customer wants to use Azure AD as the authoritative source for the identity profile partner staff (B2B guest users in azure AD). For these guest users, additional identity attributes are needed in Identitynow. The idea is that the azure AD connector should fetch these custom account attributes during aggregation. Therefore, we have created a schema extension in azure AD for user objects which contains all custom attributes.  
We followed the instructions as described in the document to configure the azure AD connector using client credentials.  
[Azure Active Directory Source Configuration Reference Guide - Compass (sailpoint.com)](https://community.sailpoint.com/t5/IdentityNow-Connectors/Azure-Active-Directory-Source-Configuration-Reference-Guide/ta-p/183945)  
**Question** : Does the account schema of the azure AD connector need to be modified? If so, how? Or is there any other solution? In the example below, the azure AD connector should fetch all custom attributes from azure schema extension “extjj27k3r8\_userIdnowCustomAttributes”.

Example of user object schema extension in azure AD:  
{  
“extjj27k3r8\_userIdnowCustomAttributes”: {  
“StaffID”: “12345”,  
“StaffGUID”: “aa93abe9c0a69b4e55686bcda04dacb0”,  
“StaffType”: “Partner staff”,  
“CompanyID”: “PC001”,  
“CompanyName”: “Company X”,  
“StartDate”: “2022-02-01T09:00:00”,  
“EndDate”: “2022-12-31T00:00:00”,  
“EmploymentState”: “Prehire”  
}  
}

Any feedback is welcome.  
Regards,  
David

---

<div class="post-metadata">

**Author:** ![yannick\_beot](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/yannick_beot/32/8985_2.png) [@yannick\_beot](https://developer.sailpoint.com/discuss/u/yannick_beot)\
**Post date:** [January 25, 2022, 10:27am UTC](https://developer.sailpoint.com/discuss/t/azure-ad-connector-setup-to-retrieve-account-custom-attributes-in-azure-ad/2787/2 "2022-01-25T10:27:33Z")

</div>

Hi @Dacom  
Yes, you need to update the connector schema.  
On the Azure AD source, go to “Import Data \> Account Schema”.  
From there, you can add your custom attribute following the syntax `extension_<clientID>_<CustomAttributeName>` by clicking on “Add new attribute”.

---

<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:22pm UTC](https://developer.sailpoint.com/discuss/t/azure-ad-connector-setup-to-retrieve-account-custom-attributes-in-azure-ad/2787/3 "2023-07-19T14:22:31Z")

</div>

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


