I meant to open an issue for this… thank you for moving to get this behavior corrected! When group memberships are modified through rules, getGroupNames does not properly reflect the change, but group.members.contains(item) does, so can be used as a workaround.