I have an issue where I need to search the vault for existing workorders using wildcards.

For example, disable workorders are created in the format:


Ideally when a termination date of a user is changed, I'd like the loopback driver to query the vault for workorders with their StaffID in
e.g: for a UK user "12345" it should query the workorders container for all workorders with a cn containing the text "disable-user-UK-1235"

I've tried this with policy (do-find-matching-object) and failed, so I'm assuming there will need to be an XPATH statement which would return a nodeset of results. The end action would be to delete any existing workorders that match.

Is this even possible, and if so does anyone have a starting point I could work with?

Thanks is advance.