The Starfleet Diplomatic Corps was a department within Starfleet.
The movement of personnel in and out of this corps was governed by the Starfleet Transfer Regulations. (TNG: "The Measure Of A Man", okudagram)
This corps was mentioned in the extended version of "The Measure Of A Man".
See also Edit