How do we get Global Search to NOT show results that are NO LONGER VISIBLE to the logged in user? More quickly? Ever?
I'm noticing as we test our implementation in Sandbox that when I
- login as TestUser A (who is in Role A)
- create an Account TestAccount A
- login as TestUser B (who is in Role B)
- search for TestAccount A - found it (because a Sharing setup was incorrect)
- fix the Sharing setup
- login as TestUser B again
- type "TestAccount A" in the Global Search bar - it is listed, and clickable, but when clicked, it has a "null reference" error (appropriate, as if the record does not exist - in truth, now properly hidden behind it's Role with no Sharing active now on the record)
This is not going to be a frequent issue, BUT it IS an issue for Executive and Corporate users who are testing (and could be one in Production) because when THEY click a link that is in their cached Global Search results, and get an error, they assume that something is broken. We're having a bad enough time with adoption here due to several issues (speed of our Sandbox, noncaching of Apex code, Rootstock and more).
If it happens to be SHARING related (somehow the Sharing needs to "catchup" perhaps), it's taking hours to days to do so (catchup). An Executive here was accessing a record a few days ago and she had not been in Salesforce for at least a week.
User TEST SID is logged in; sees a previously visible Account TEST IDW 0303 1 in search results (no longer accessible as Sharing was removed)
Clicking on the cached Search result, they get an error, the first sentence of which is what's relevant