My flow successfully assigns a custom security role and shares a Power App. The Power app uses a Dataverse table. This works—the app is shared and the user shows up in the list of users assigned that security role.
However, when the user attempts to open the Power App they are denied permission. In the flow, I've tried putting in Delays and reversing the steps, but still have the problem.
If I manually re-share the app then the data permissions dropdown is pre-populated with the correct security role for the entity. If I continue and click Share, the user can now access the Power App. Clearly my flow is needing another step, but what?