The Justice Ministry spent $23,000 for a production company to interview its staff on leadership and record a video in which staff lip-sync and dance in a conga line to a Justin Timberlake song.
Documents provided under the Official Information Act state the recordings were shown at a staff conference in October.
Before the conference the ministry paid Sauce Films Limited to create five videos, which showed staff being interviewed about leadership in Auckland, Wellington and Christchurch.
In a letter obtained by the Herald, deputy secretary for corporate affairs Suzanne Stew said the ministry decided to also film a music video.
It was a way to "celebrate their connection in an upbeat and informal way", she said.