The usher makes sure that the trial runs smoothly.
They make sure that all the witnesses are seated in the right places behind the lawyers and show the public where to sit.
When the magistrates are ready to enter the court, the usher asks everyone to stand. They do the same when the magistrates leave.
They escort the witnesses to and from the witness box where they are 'sworn in'.