It is customary during the evenings of the eight days of Hanukkah, when we gather in the Bet Knesset (synagogue) to pray Mincha and Arvit, to have a ceremonial lighting of the candles between Mincha and Arvit, with all of the Berachot (blessings). Even though this is not mentioned anywhere in the Talmud, it is a very ancient practice because the point of lighting candles is for Pirsumei Hanes, to spread the miracle, and you have a large gathering of people coming right before they are about to go home and light the candles.
So we light the candles in the Bet Knesset to remind people of the holiday, to instruct them how to go about doing it when they go home, to remember Al HaNissim in Arvit, and to let them know that we are going into the next night of Hanukkah. And so we make all of the Berachot, but this does not fulfill our obligation. Everybody still has to go home and light the candles in their home. And therefore, the person who does the lighting in the Bet Knesset does not fulfill their obligation either. So it could be anybody who wishes to light; it is just for Pirsumei Hanes, and then they can go home and light the candles once again to fulfill their household.
It has, however, become customary to invite somebody who is, let’s say, a single person who is not lighting the candles themselves because they are covered by their father, or somebody who is not going to be lighting the candles on their own, to light the candles in the Bet Knesset and give him the opportunity to actively participate in the mitzvah (commandment). But since it is Pirsumei Hanes, it could be done in front of a large gathering. From here, Hacham Ovadia makes an even greater extension. He says that at any point during Hanukkah, if you have a large gathering of people, you are having a Hanukkah celebration with your friends and family, and you are getting together at night, even if everybody lit candles already at home, you could do another candle-lighting ceremony, and they could make all of the Berachot. And if it is the first night, they could even say Shehecheyanu (Who has kept us alive) again, because if it is for the purposes of Pirsumei Hanes, it takes on a similar status to the Bet Knesset. Lastly, if there are men who are, let’s say, praying in their offices during the eight days of Hanukkah, and they are praying Mincha and Arvit there, that also has the status of a Bet Knesset, and they light the candles with the Beracha (blessing) over there as well. Have a great day.