I am working on Sharepoint Online. I have a requirement that when a user has no permission to a file, he/she still can see file in search result, but no permission to open the file. I know there is security trimming in sharepoint search. But is it possible to achieve my requirement?
0
votes
1 Answers
0
votes
As Ondrej has said this isn't possible via the OOTB search functionality and this is by design.
If you wanted to be able to see all information returned by search you would need to write something custom and impersonate a user who does have access to the document.
Impersonation of User in office 365/SharePoint online
I'd only do the above in exceptional circumstances.
I would be questioning why you want someone to be able to see something they do not have access to read.
Cheers
Truez