In unmanaged environments, we can’t directly restrict sharing of apps or flows (unlike managed environments).
What you can do instead:
Use Power Platform Admin connectors in Power Automate or PowerShell (Get-AdminPowerAppRoleAssignment
, Get-AdminFlowOwnerRole
) to get the list of users an app/flow is shared with
Based on that list, you can either:
Remove-AdminPowerAppRoleAssignment
, Remove-AdminFlowOwnerRole
), or
There are also Conditional Access Policies for Power Apps (Conditional access policies for individual apps - Power Platform Release Plan | Microsoft Learn), but these won’t directly control sharing in your scenario.
So while we can’t stop sharing in an unmanaged environment, we can monitor and react to it effectively
If this solution helped you resolve your issue, kindly mark it as accepted — it makes it easier for others to find and also closes the discussion. If you found it useful, a Like ❤️ would be greatly appreciated!
🤝 Let’s connect on LinkedIn || 📘 Explore more on my articles