Managing hierarchical organizations in Power BI security roles

How to apply dynamic security roles in a hierarchical organization to minimize the maintenance effort on the security configuration and obtain the best performance at query time.