Depending on the type of protection, immigrants from third countries receive a residence permit. The decision on the residence permit is issued by the Federal Office for Migration and Refugees (BAMF) in the form of an asylum decision.
Further information on the website of the BMI (under "Aufenthaltserlaubnis")