The tenant is in certain situations legally entitled to assign the apartment temporarily to someone else. The landlord may not prohibit this by, for example, entering a condition in the lease agreement.
Information database
Home Information database Temporary assignment