Joseph could no longer control himself in front of all his attendants, so he declared, "Everyone, leave now!" So no one stayed with him when he revealed his identity to his brothers.
References for Genesis 45:1
He wept so loudly that the Egyptians and Pharaoh's household heard him.
Joseph said to his brothers, "I'm Joseph! Is my father really still alive?" His brothers couldn't respond because they were terrified before him.
Joseph said to his brothers, "Come closer to me," and they moved closer. He said, “I'm your brother Joseph! The one you sold to Egypt.
Now, don't be upset and don't be angry with yourselves that you sold me here. Actually, God sent me before you to save lives.
We've already had two years of famine in the land, and there are five years left without planting or harvesting.