Here's a interesting situation when SECURITY TRIIMMING with SEARCH
doesn't work…..
Folder structure like so on a File Server (\\fs01)
TopFolder
-SubFolder1
- FileA
-SubFolder2
- FileB
ACL on folders like so
TopFolder - SHARE level permission restricted to certain domain
groups e.g. design
SubFolder1 - read/list FILE level permission set to EVERYONE
SubFolder2 - read/list FILE level permission set to EVERYONE
So if you are NOT in design group, you will not see SubFolder1 or
SubFolder2.
Now, if we crawl \\fs01\TopFolder\* using an account with read
permission on all folders/files on \\fs01, it will crawl and index
EVERYTHING under TopFolder.
When users, say in the marketing active directory group, do a search
for content in FileA or FileB they come up on the search results
page (Core Result Web Part)
Question: How can I display a "you cannot access this!" type
message in the search results for FileA and FileB to users (e.g.
marketing users) who cannot access these files?
So far, I have tried to look at the managed/crawl properties to see
if any security context type information gets indexed and see if I
can use that in the search XSLT… but nothing has come up