The legal or professional requirements for being able to work in Germany as a foreigner.
The Residence Act (Aufenthaltsgesetz—AufenthG) regulates access to the labour market. Different regulations exist for citizens of different countries. What’s important here is the reason for the residence (see residence permit). Freedom of movement applies to residents from EU/EEA/Switzerland.