Whenever the President determines it to be in furtherance of the purposes of this chapter, the head of any agency of the United States Government is authorized to detail or assign any officer or employee of his agency to any office or position with any foreign government or foreign government agency, where acceptance of such office or position does not involve the taking of an oath of allegiance to another government or the acceptance of compensation or other benefits from any foreign country by such officer or employee.