Judge Advocate General

A Judge Advocate General (often shortened to JAG) within Starfleet is an officer that oversees legal matters concerning Starfleet personnel. Legal counsel within Starfleet report into the senior JAG as part of the department known as the Judge Advocate General's Office (or simply the "Judge Advocate's Office").

The Judge Advocate General of Starfleet is the flag rank officer who oversees the JAG corps, and is a member of Starfleet Command. Rear Admiral Salvatore Barranco was the JAG in the late 2370s

The Judge Advocate General's Office was responsible for the investigation into the mutiny that occurred aboard the USS Pegasus in 2358. In 2370, Cadet Daniel Bryce interned with the Earth JAG office at the time the Pegasus scandal was uncovered. (Junction Point)

Timothy Sinclair served two brief stints with the JAG office on Earth in the early 2360s.