Acquisition of real estate is subject to permission. Exemptions apply to persons who have been residents of Denmark for at least five years; companies domiciled in Denmark; EU nationals working in Denmark and EU-based companies operating in Denmark, for residential or business purposes; non-EU  nationals  who  are  either  in  possession  of  a  valid residence  permit  or  are  entitled  to  stay  in  Denmark  without such a permit, for residential or active business purposes.
"§ 1. 
Persons who are not resident in Denmark, and who have not previously resided in this country for a period of a total of 5 years, may only with the permission of the Minister of Justice acquire access to real estate in this country.
PCS. 2. The same applies to companies, associations and other organizations, public or private institutions, foundations and endowments, which are not domiciled in Denmark, and foreign government agencies.
PCS. 3. The Minister of Justice may lay down rules to the effect that certain persons who are not resident and have not previously resided in this country for a total period of 5 years, as well as certain companies etc. who are not domiciled in this country, without the permission of the Minister of Justice can acquire access to real estate in this country, which must serve as necessary year-round housing for the acquirer, or where the acquisition is a prerequisite for practicing self-employment or providing services."
(Act on the acquisition of real estate (No. 265 of 21/03/2014), § 1 [google translation])

******

"§ 1. 
The following persons and companies etc. may acquire access to real estate in this country without the permission of the Ministry of Justice pursuant to § 1 of the Act on the acquisition of real estate, cf. Statutory Order no. 566 of 28 August 1986 as amended by Act no. 1102 of 21 December 1994, even if they are not domiciled or domiciled in this country or have not previously resided here for a total period of five years:
1) Workers who are nationals of a Member State of the European Union (Community nationals) and who are employed as employees in this country or have a Community residence permit.
2) Workers who are nationals of a State which has acceded to the Agreement on the European Economic Area, and who are employed as employees in this country, or have an EEA residence permit.
3) Community nationals or nationals of a State which has acceded to the Agreement on the European Economic Area who have established or will establish themselves in this country for the purpose of self-employment.
4) Community nationals or nationals of a State which has acceded to the Agreement on the European Economic Area and who has established or will establish agencies or branches in this country, or who will provide or receive services here.
5) Companies etc.
PCS. 2. The companies etc. mentioned in paragraph. 1, nr. 5, must either have its head office or head office within the Communities or a State which has acceded to the Agreement on the European Economic Area or has its registered office there. In the latter case, the company's activities must have a genuine and lasting link with the business community of a Member State or State which has acceded to the Agreement on the European Economic Area.

§ 2. 
Community nationals who have a residence permit in Denmark pursuant to EC Directives 90/364 / EEC on the right of residence, 90/365 / EEC on the right of residence for employees and the self-employed who have ceased work or 93/96 / EEC on right of residence for students, may acquire access to real estate in this country without the permission of the Ministry of Justice pursuant to section 1 of the Act on the Acquisition of Real Estate, cf. Statutory Order no. in the country and have not previously resided here for a period of a total of 5 years.

§ 3. 
The provisions of § 1 and § 2 apply only to the acquisition of properties,
Which must serve as a necessary year-round residence for the acquirer, or
where the acquisition is a prerequisite for self-employment or providing services."
(Executive Order on the acquisition of immovable property in respect of certain Community nationals and companies, as well as certain persons and companies of countries which have acceded to the Agreement on the European Economic Area (No. 764 of 18/09/1995), §§ 1-3 [google translation])
Act on the acquisition of real estate (No. 265 of 21/03/2014), § 1 
Executive Order on the acquisition of immovable property in respect of certain Community nationals and companies, as well as certain persons and companies of countries which have acceded to the Agreement on the European Economic Area (No. 764 of 18/09/1995), §§ 1-3
[<a href="https://www.retsinformation.dk/eli/lta/2020/1718">Act on Investment Associations</a>],[<a href="https://www.retsinformation.dk/eli/lta/2019/1047">Act on Managers of Alternative Investment Funds</a>]