This can be stated in active form. It is not clear who appointed the men. AT: "they appointed men to be in charge" (See: [[rc://en/ta/man/translate/figs-activepassive]])
The Levites and priests were not just standing, they were serving in their roles. The meaning can be made explicit. AT: "who were standing before them serving God" (See: [[rc://en/ta/man/translate/figs-explicit]])
These were people assigned to each gate, responsible to control access to the city or temple, as well as to open and close the gates at times and for reasons set by the administrator. See how you translated this in [Nehemiah 7:1](../07/01.md).