Affidavit demanded by LPU from landlord through student(s)

Can Lovely Professional University ask the landlord of a private building, where the LPU student is living as a tenant to submit an affidavit stating that the landlord authorizes the LPU officials to inspect the premises at any time 24*7? LPU has asked the students to submit this affidavit to them failing which their attendance will be blocked, and they will be penalized financially. Is the affidavit, they are asking for has any legal standing that is do they have any legal right to ask for the access to someone's property 24*7? Thanks