Translation of "As assigned" in German

At the Foreign Office, he was first assigned as attaché to Alfred Horstmann.
Im Auswärtigen Amt war er zunächst dem Alfred Horstmann als Attaché zugeteilt.
Wikipedia v1.0

They could also be assigned as military governors of conquered regions.
Sie konnten auch als militärische Statthalter eroberter Provinzen eingesetzt werden.
Wikipedia v1.0