By “all the congregation” here is meant the persons referred to in 2 Chronicles 23:2.
Related Commentaries of 2 Chronicles 23:3
2 Chronicles 23:3
3 And all the congregation made a covenant with the king in the house of God. And he said unto them, Behold, the king's son shall reign, as the LORD hath said of the sons of David.