Get entities in group

The “get entities” node has an option to filter the entities using “in group”. I’m unsure if this refers to HA groups. When my incoming payload has a field entity_id, how would I use the “get entities” to check if that field matches one of the group’s entities?

Here is what I tried, but didn’t work:

node

image

Just found this thread and want to note that this also works with new-style domain-specific groups like light.primary_lights