Hello community experts,
I have a case where I want to automate Power App sharing via Power Automate Flow. My Power App license designation is "Premium" as it uses Dataverse as its data source. Therefore "Power Apps per app plan" is required to be assigned for each user when sharing the app. Currently I am following this tutorial to share a Power App with a certain user and it is working: https://www.c-sharpcorner.com/article/automate-powerapps-app-sharing/
Now, as far as I have understood, to assign Power Apps per app licenses you have to do these actions in the correct order:
Before I start developing this automation further with the Flow, I'm wondering can the "Edit App Role Assignment" -action of the Power Apps for Makers connection assign these per app licenses to the users? Or are you able to allocate these per app licenses manually from the "Apps" -section?
Also as a bonus question, is there a way to obtain a list of the users who have been correctly assigned to the "per app" -license of a certain Power App?
Thanks in advance,
Ville
Regarding your last question, even if shared with a flow the users are assigned a per app license.
There is no difference if the action's been done through UI or through a flow.
Thanks for your reply @Anonymous
I also want to assign custom security roles from inside the app and as far as I know, when assigning a security role to a group, the people included in the security group don't inherit the added role to the group.
I am not sure how to do this with the security groups so I'm still with the Power Apps for Makers Flow, still wondering if the users are assigned a per app license, when the Power App is shared via Flow. Thanks 🙂
Ville
Hi Ville,
Regarding:
@VilPel wrote:If I shared a Power App with an AD security group, are the per app licenses assigned to everyone in the group?
As long as the license number is equal or greater than the number of group members, all users will be able to access. By sharing an app with a user (directly, or indirectly via a Group) you are also assigning an app pass (see https://docs.microsoft.com/en-us/power-platform/admin/about-powerapps-perapp#consumption-of-per-app-licensing)
For your scenario, you might want to use M365 groups instead of Azure groups. You share the app with tha group, and you then can trigger a Power Automate flow from the app to add the new member to the group as well as removing them from the group with another flow.
Here you have the documentation for the Groups Connector: Office 365 Groups - Connectors | Microsoft Docs
With the 3 following actions, you should be able to progress in your use case:
Hello,
Thank you for the reply. In my use case I want to share the Power App from inside the Power App. In the app I'd have a text field where I input the user's email and the app is shared with the user. Also, I want to remove Power Apps access with single users inside the app.
If I shared a Power App with an AD security group, are the per app licenses assigned to everyone in the group?
Ville
Hi VilPel,
You might want to try this alternate approach:
"Solved: Automating App Sharing - Power Platform Community" https://powerusers.microsoft.com/t5/Building-Power-Apps/Automating-App-Sharing/td-p/675239
This has the advantage that you can see who is the the AD security group, as currently Microsoft is working on making the current app pass consuming users visible as per https://docs.microsoft.com/en-us/power-platform/admin/about-powerapps-perapp#when-will-i-be-able-to-see-the-list-of-users-who-are-using-the-power-apps-per-app-license
WarrenBelz
85
Most Valuable Professional
mmbr1606
55
Super User 2025 Season 1
Michael E. Gernaey
52
Super User 2025 Season 1