Cancellarii
Cancelli are lattice-work, placed before a window, a door-way, the tribunal of a judge, or any other place.
This led to the occupation of cancellarius, which originally signified a porter who stood at the latticed or grated door of the emperor's palace. According to the Historia Augusta, the emperor Carinus gave great dissatisfaction by promoting one of these cancellarii to city prefect, although the veracity of this account is disputed.
Other cancellarii were legal scribes or secretaries who sat within the lattice-work which protected the tribunals of the judges from the crowd. The chief scribe in Constantinople eventually acquired the term and from his position came the modern "chancellor".