r/PowerApps • u/lachesistical • 19m ago
Power Apps Help Resolving Delegation and Org Hierarchy Authorization
Hello, I have been lately getting many project requests from upper management specifically HR to implement a action-based system where the authorization would be hierarchy based: Senior Manager can see all the actions created by those who report to them and Manager sees those who report to them.. Similarly, we can think of how CEO will see. A CEO will have Directors under him, then those Directors will have Senior Managers, Senior Manager have Managers, followed by Senior Associate and Associates.
I did some POCs, to fetch the hierarchy of the user in real-time I have tried using DirectReportsV2 to fetch it, but that introduces a lag onAppStart as it first generates the hierarchy and then searches for their actions.
The actions are stored in a single Sharepoint, from actions of CEOs to all those who are under. Here, I'm facing a delegation issue, as the action lists keep growing past 2000 row items to maybe in the future to 10,000 or more. To resolve this, I've tried using filter based on the user actions and their subordinate's actions but it seems not so practical when the rows grow past 2000s.
I've also created a static hierarchy list through powerautomate which runs at 2AM to pull the info using a loop. Following which when my app runs it would be able to fetch info directly from the list. This too fails miserably once I get past 6000 employees in the company. As the powerautomate on standard license is restricted to 6000-7000 actions.
If I am restricted to standard license and no 3rd party connectors. What are my options?