Forum Discussion

anthonpx's avatar
anthonpx
Copper Contributor
Jun 12, 2019

How to make "samAccountName" searchable?

Hello!

We would like our users to be able to search for users "samAccountName" in SharePoint Online.

Since SharePoint Online doesn't have a property for this Active Directory attribute we have created a script that imports this information to a custom property called "SamAccountName" in Sharepoint.

 

Please see the pictures down below:

 

Since the information exists, how can I make this "property" searchable? From what I understand we should use "Managed Properties" and "Crawled Properties"? Is that correct, can someone please explain how this works?

 

Kind Regards,

Anthon

4 Replies

  • NiteshRanjan's avatar
    NiteshRanjan
    Copper Contributor
    Yes that’s correct understanding. Please refer to the below article.
    https://medium.com/plumsail/how-to-create-managed-search-property-for-user-profiles-in-office-365-as-fast-as-possible-ac4a95cd7afb
    • anthonpx's avatar
      anthonpx
      Copper Contributor

      NiteshRanjan 

       

      I've used the scripts to update all users and waited for over 7 hours now. Should we wait more or did we do anything wrong? Don't really know what to expect. 

      • NiteshRanjan's avatar
        NiteshRanjan
        Copper Contributor
        There is something wrong as it shouldn’t take this long. We’re you able to fetch your user profile property as creaked properties before we created a managed property?
    • anthonpx's avatar
      anthonpx
      Copper Contributor

      NiteshRanjan wrote:
      Yes that’s correct understanding. Please refer to the below article.
      https://medium.com/plumsail/how-to-create-managed-search-property-for-user-profiles-in-office-365-as-fast-as-possible-ac4a95cd7afb

      NiteshRanjan Thank you so much for the answer, great article. I'll guess we just have to wait now. :)

Resources