If you are a civil servant with a German employer and have a residence permit to fulfil official duties in Germany, you can apply for the extension of the residence permit.