"The video was played at the Leaders' Forum and then shared with everyone in the Ministry through the Ministry's intranet. It was received in the spirit in which it was made - as an opportunity to engage with colleagues from around the country in a positive way."
The lip-sync video was shown at the conference. The ministry declined to release the video as staff participated without agreeing to it being publicly released.
It features Justin Timberlake's Can't Stop the Feeling and was filmed at the ministry's head office.
According to RNZ, the video also features court security dancing in courtrooms, and staff forming a conga line and dancing through offices.
Justice Ministry chief executive Andrew Bridgman features in the video dancing and lip-syncing in his office.
When asked if the videos were a waste of money, Justice Minister Amy Adams said "the chief executive will have to reflect on [that] and decide whether he thinks it was good value for money".
"I haven't seen the breakdown between how much was spent on the five videos and the impact of them. The chief executive will have to reflect on that and be prepared to answer for it."
Taxpayers' Union executive director Jordan Williams said the video should be made public.
"Taxpayers paid for the video, they should be able to see it," he said.
He said that a refusal to release the video was to protect the "embarrassment of wasting $23,000 on a shoddy Justin Timberlake impersonation".