Documentation of statistics: Asylum Applications and Residence Permits
From 1997 there is information about residence permits on individual level for each immigrated person with citizenship outside Denmark and the Nordic countries.
https://www.dst.dk/en/Statistik/dokumentation/documentationofstatistics/asylum-applications-and-residence-permits
Documentation of statistics