Mautic Community Forums

How do I search for all contacts that DO NOT have a specific tag?

How do I search for all contacts that DO NOT have a specific tag?

I’ve tried tag:!welcome and !tag:welcome, but I have one user that DOES have the welcome tag. The contact keeps showing up in the search no matter what I do. But I think it’s because he has more than one tag in general.

Does this need to have some sort of wildcard search?

I tried the same thing and it works like this with e.g. stages: stage:!welcome

Maybe we have a bug here for tags?

Maybe… the search seems to work when each contact only has one tag. But as soon as the user get more than one tag they still show up in the negative search.

I was thinking I would add contacts to certain campaigns depending on the tags they have set, but some campaigns require them to have finished a different campaign first. So, I was trying to use the existence of tags to know which campaign they should be in.

I guess I should look for a different way to do this than using tags?

You can also add contacts to segments based on other segments. Or in your case: add them not to segments based on other segments.

Thanks! I ended up using Segments instead with the correct exclusion filters added.

1 Like