locked
Show Search Results on which user do not have access. RRS feed

  • Question

  • Hi Experts...

    Once again i am having trouble with search. let me explain the scenario.

    I am having document libraries say DocA, DocB... etc. each of the library have public and private folders. every user have access to public documents. but not private . private documents will be accessed by certain user for each library for ex. GroupA for docA , GroupB for docb etc.

    when user performs a  search Search results webpart should show normal search results but i have to implement a webpart which should show the document properties from private folders. remember it will show only properties and not document. from where user can make a request from owner and owner will mail it manually.

    Please suggest some way.. thanks in advance..


    Mukesh

    Thursday, April 23, 2015 5:42 PM

Answers

  • Finaly i have solved my problem . i have taken a column in my content type which tracks service line of each user 

    user have permission on only its own service line by default. so i have writen kql to get the data where service line not matches with its own service line.


    Mukesh

    Friday, May 15, 2015 3:56 AM

All replies

  • Hi Mukesh,

    Without breaking the permission there is not a way as per SharePoint behavior, but you can create your custom search web part or user control something to query the search and get executed the Code with higher permission to execute the search query. You can try with best bets to filter the search results if you can do.


    Krishana Kumar http://www.mosstechnet-kk.com
    Please mark the replies and Proposed as answer if they help and solve your issue

    Thursday, April 23, 2015 7:05 PM
  • Hi Krishna,

    yes i that way i will be able to get search results from elevated user but i want to get only those results only on which user do not have access.


    Mukesh

    Friday, April 24, 2015 9:01 AM
  • Yes, once you get the search result items collection you need to check each item is permission for logged in user, it is not out of box available you need to write code on your search webpart.


    Krishana Kumar http://www.mosstechnet-kk.com
    Please mark the replies and Proposed as answer if they help and solve your issue

    Sunday, April 26, 2015 6:45 AM
  • Oops Krishna , very frustrating in this way page will render very slow.

    Mukesh

    Monday, April 27, 2015 9:20 AM
  • Finaly i have solved my problem . i have taken a column in my content type which tracks service line of each user 

    user have permission on only its own service line by default. so i have writen kql to get the data where service line not matches with its own service line.


    Mukesh

    Friday, May 15, 2015 3:56 AM