Forum Discussion

Jim Duncan's avatar
Jim Duncan
Iron Contributor
Jun 29, 2017

Site Classification value in SharePoint Search

Does anyone know if the Group/Site Classification value for a site is available as a Crawled and/or Managed Property so that I can use it to build a search-driven experience based on site classification?

 

Thanks!

  • Wim van Delft's avatar
    Wim van Delft
    Copper Contributor

    Hi Jim,

    It's been a while since you've asked this question here. Now I would really like to do the same thing. Have you had any answers to make this work?

     

    Thanks!

    • Mikael Svenson's avatar
      Mikael Svenson
      Steel Contributor
      Not available last time I checked. Classification is stored on the Groups graph object and not on the SP site. So you could copy it over as an indexable prop bag value, but would be a sync job on your part. Might be better to query the MS graph instead of using SP search.
      • Jim Duncan's avatar
        Jim Duncan
        Iron Contributor

        Thanks, Mikael Svenson and jcgonzalezmartin.

         

        I would really like to keep this as a Search-based solution as it has worked for us to this point.

        The overall experience allows us to have a single page for internal and external users that provides quick access to the site(s) which the user has permission to access (in the case of External users, they only get one result).

         

        From what I can tell, the classification value is available to CSOM as the Site.Classification property. Is this populated from the Graph at runtime or is it an actual property on the Site object? If the latter, can it not be picked up by the Crawler so that we can map it to a Managed Property?

         

        I wonder if VesaJuvonen has any input...

Resources