Article 17 Vienna Convention on Diplomatic Relations
The precedence of the members of the diplomatic staff of the mission shall be notified by the head of the mission to the Ministry for Foreign Affairs or such other ministry as may be agreed.
See also: Article 16 Vienna Convention on Diplomatic Relations