Start with a register of related parties
Article 35 of the Corporate Tax Law treats as related: individuals within the fourth degree of kinship or affiliation, a person and any company in which that person and their related parties own 50% or more, and entities under common control. Article 36 adds connected persons, which are owners, directors and officers, and their related parties.
Turn that into a register. List each shareholder, director and senior officer, their close family members who have business dealings with the company, and every company any of them controls. Note the relationship and the date it started. Update the register when shareholding or directorships change.
Example: a Dubai interiors company owned 60% by Khalid and 40% by his cousin. The register lists Khalid, the cousin, Khalid's wife who rents the company a storage unit, Khalid's furniture import business in Ajman, and the cousin's joinery workshop in Sharjah. That is five related parties for a company with twelve employees.