0

I am trying to map the "Country" field property from Azure Active Directory User Profile to a custom Managed Property in SharePoint for search purposes.

What is the correct "Crawled Property" value to use for this field?

enter image description here

The closest "location" based value from Azure AD that I can successfully map is "Office Location" which is identified by People:SPS-Location

There is no "country" based property I can find under "Crawled Properties"

enter image description here

1
  • I’m checking how the things are going on about this issue. Whether the answer helps you?
    – Xyza_MSFT
    Apr 6, 2023 at 5:31

1 Answer 1

0

As per my knowledge SharePoint does not sync Country or Region Azure AD property to user profile by default.

As a workaround, you can create your custom user profile property and using PowerShell Script you can sync it to custom user profile properties. Once sync is finished then crawled property for it will be created automatically. if you want to sync the values on regular basis then you can configure task scheduler to run on specific interval or you can use other options like Azure Function, etc.

Below are the steps to create user profile properties

  1. Open SharePoint Admin Center
  2. Go to User Profile

enter image description here 3. Click on Manage User Profile Properties

enter image description here

  1. Click on "New Property"

enter image description here

  1. Create user profile property with following configuration

enter image description here

Links for PowerShell scripts to sync azure ad user property to user profile property

  1. https://www.sharepointdiary.com/2019/03/sharepoint-online-import-user-profile-property-from-azure-ad-using-powershell.html
  2. https://www.tatvasoft.com/blog/how-to-sync-azure-ad-extension-attribute-with-user-profile-for-custom-property-in-office-365/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.