Custom user properties in AD

%3CLINGO-SUB%20id%3D%22lingo-sub-1668055%22%20slang%3D%22en-US%22%3ECustom%20user%20properties%20in%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1668055%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20AD%20hybrid%20(AD%20on%20prem%20%26gt%3B%20AD%20connect%20%26gt%3B%20AAD%20(Azure%20Active%20Directory))%20and%20we%20want%20to%20be%20able%20to%20pull%20custom%20properties%20through%20to%20Sharepoint%20Online%20(for%20example%2C%20user%20shoe%20size%2C%20user%20hair%20colour%2C%20etc)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20we%20add%20custom%20properties%20to%20AAD%20so%20we%20can%20query%20the%20custom%20properties%20either%20using%20Sharepoint%20people%20search%20or%20using%20the%20Microsoft%20Graph%20please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1668055%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActive%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%20Modern%20Experience%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1673171%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20user%20properties%20in%20AD%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1673171%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F794069%22%20target%3D%22_blank%22%3E%40agirlwhocodes%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20follow%20the%20below%20link%20to%20create%20custom%20attributes%20in%20AAD.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fexternal-identities%2Fuser-flow-add-custom-attributes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fexternal-identities%2Fuser-flow-add-custom-attributes%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20above-defined%20custom%20attributes%20can%20be%20synced%20using%20the%20Azure%20AD%20Connect%20with%20an%20on-prem%20hybrid%20approach.%20But%20the%20properties%20are%20not%20synced%20to%20SharePoint%20UPS%20by%20default%20it%20has%20to%20be%20synced%20through%20custom%20code.%20You%20can%20find%20an%20SPFx%20web%20part%20that%20will%20allow%20syncing%20the%20properties%20from%20AAD%20to%20SharePoint%20UPS%20in%20a%20more%20user-friendly%20way.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-spupsproperty-sync%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-spupsproperty-sync%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fspknowledge.com%2F2020%2F05%2F21%2Fspfx-sharepoint-user-profile-property-sync%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fspknowledge.com%2F2020%2F05%2F21%2Fspfx-sharepoint-user-profile-property-sync%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EHope%20it%20helps%2C%20please%20like%20it%20or%20mark%20it%20as%20a%20solution%20if%20it%20resolves%20your%20clarification%20or%20issue%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E-Sudharsan%20K...%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

We have AD hybrid (AD on prem > AD connect > AAD (Azure Active Directory)) and we want to be able to pull custom properties through to Sharepoint Online (for example, user shoe size, user hair colour, etc)

 

How do we add custom properties to AAD so we can query the custom properties either using Sharepoint people search or using the Microsoft Graph please?

1 Reply
Highlighted

Hi @agirlwhocodes,

 

Please follow the below link to create custom attributes in AAD.

https://docs.microsoft.com/en-us/azure/active-directory/external-identities/user-flow-add-custom-att...

 

The above-defined custom attributes can be synced using the Azure AD Connect with an on-prem hybrid approach. But the properties are not synced to SharePoint UPS by default it has to be synced through custom code. You can find an SPFx web part that will allow syncing the properties from AAD to SharePoint UPS in a more user-friendly way.

https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-spupsproperty-sync

https://spknowledge.com/2020/05/21/spfx-sharepoint-user-profile-property-sync/

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...