I am trying to run a search for all documents that a particular user has Del rights too. Is there an advanced search syntax where I can query rights on entries?
Essentially what I am doing is running a workflow nightly that removes empty folders. There are quite a few folders that have unique security that Workflow should not delete and thus I've removed the Workflow user's permission to delete those folders. When it attempts to delete these it generates an error saying it doesn't have permission to delete this folder and while that is not an issue, I'd prefer the workflow to only delete folders it has permission to and thus not generate an error in the search results. In my WF I've had the Search activity bring back the "Security" token for each folder as part of the additional properties and have added a conditional statement to not attempt to delete it if that security token does not contain "|Del|". However, I'd prefer the search not even return any folders the Workflow user does not have the right to delete in the first place. Anyone know how to search for folders that a specific user has specific rights to?