- All versions of Google Cloud Directory Sync
- Go to the Configuration Manager > Shared Contacts > Search Rules.
- Type a search rule like:
- Save the XML file (with a different name as a suggestion) and execute a simulation.
- The search rule will retrieve all the objects that are type contact and that have a mail, but do not have the string *test* in the mail attribute.
The Exclusion rules, do not show an option to exclude by mail. It only shows Sync Key in the Exclude type field.