A good question. I would not say that by right of office a person can obtain the right to lie, but in circumstance. It may be necessary to lie to prevent dishonor to our Lord, to prevent harm to another, and for many other reasons. St. Augustine’s book De Mendacio is an excellent guide on this topic:
#11 (
www.newadvent.org/fathers/1312.htm)
…Or when by aid of a lie he wishes to make a person fit for gaining the truth, he bars the approach to truth, for by wishing when he lies to be accommodating, it comes to pass that when he speaks the truth, he cannot be depended upon. Wherefore, either we must not believe good men, or we must believe those whom we think obliged sometimes to tell a lie, or we must not believe that good men sometimes tell lies: of these three the first is pernicious, the second foolish; it remains therefore that good men should never tell lies.
Off hand, to keep within the context of which you present, a close case for lies involving office is the sentencing process of nations.
For example, God wishes his people and nations to be receptive to the command for criminals to settle accounts, as well as the importance of discretion. (Mathew 5,23-25 - 18,15). God also wants us to apply punishment
in measure and to ensure a view to closure always plays a part in the overall process. (2 Cor 2,6)
Typically the person assigned such a task is the judge, who represents the nation. The lie occurs at sentencing where the defendant is told(proclaimed) his sentence. Contrary to the spirit of Mathew, the nation legislates that it is not a requirement that all controlled sentencing is proclaimed. However, it is the duty to God by nations to do so. As a result, the judge follows suit to obey and therefore never tells the offender at trial all that will befall him. He thinks he is doing his duty to follow orders, but in fact his duty is to God first, and in conscientious objection refuse to partially proclaim sentencing.
So we have an example where the lies of one entity taints the duty of another. We note the common good which is restrained in 2 Cor 2, 6 but is ignored.
Satan now is free to take is turn. The ruse to the eyes of the world is that the crime of stealing pencils merits the punishment of 50$ (proclaimed sentence). The truth is the judge knew the offender would be further restricted in military enlistment,government jobs and in many other controlled areas of freedom and rights. The sin compounds further in that pardons which are to be unconditional, finds itself at odds with the command for closure 2Cor 2,6 because the offender must initiate it. Another compounding effect, and probably the original intent of the nation’s legislation to bury proclamation of sentencing is the lie to present a fair picture of justice to those new citizens who seek a nation, and to the United Nations. To them they only see the fairness of the 50$ sentencing.
The result is while God waits for the victim/judge to do his part at reconciliation, the offender goes to the next world still waiting. God is not pleased.
Hope this helps.
In closing we are to discern realistically the good effect of not telling the truth. There must be no other means to achieve the good without lying.