Joseph could no longer keep his composure in front of all his attendants, so he called out, "Send everyone away from me!" No one was with him when he revealed his identity to his brothers.
References for Genesis 45:1
But he wept so loudly that the Egyptians heard it, and also Pharaoh's household heard it.
Joseph said to his brothers, "I am Joseph! Is my father still living?" But his brothers were too terrified to answer him.
Then Joseph said to his brothers, "Please, come near me," and they came near. "I am Joseph, your brother," he said, "the one you sold into Egypt.
References for Genesis 45:4
And now don't be worried or angry with yourselves for selling me here, because God sent me ahead of you to preserve life.
For the famine has been in the land these two years, and there will be five more years without plowing or harvesting.