How can we know through rule user has a part of groups

please help me on this issue

  Discussion posts and replies are publicly visible