1

I am developing SharePoint ONLINE "Employee Directory" where I am able to get all the users information along with Service Accounts. The requirement is not the display the service accounts or non-user accounts(e.g, accounting@domainname.com, marketing@domainname.com etc) in the search results web-part.

There is one new Custom Attribute at AZURE Active Directory with the name "employeeID" which distinguish whether the user account is a service account or normal user account. How to map that Azure AD attribute to SharePoint ONLINE user property?

I have followed this link ( https://thomasdaly.net/2016/01/16/hiding-people-from-people-search/ ) but the newly created managed property is not appearing in the Property Filter dropdown of the Search Result's Change query.

Can anyone please help me to resolve this issue?

Many thanks in advance.

0

Another option is to reuse the SPS-hidefromaddresslist attribute to filter out those accounts https://blogs.technet.microsoft.com/beyondsharepoint/2016/11/11/restrict-disabled-users-in-search-results/

  • Thanks for your response Larsen. Is there anyway to sync that Azure AD Custom Attribute ("employeeID") to map to SharePoint ONLINE user property? – Sai Krishna Vellanki Jul 6 '17 at 9:58
  • Only standard properties are mapped and hence indexed. Custom properties need to be synchronized manually for example using a script to iterate all User Profiles and fetch data from AAD or EXO. Also be aware that you need to add data into the fields before they are crawled and hence get managed/crawled properties to use for filtering in search – Anders Rask Nov 10 '17 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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