Hi ,
How we can add service account as owner automatically when anyone create PowerApps in particular environment . We are looking this solution as governance to handle and keep the track.
Thanks
There are some PowerShell commands that you can use to change the owner of an app. But I don't think there is any way to make it run automatically. But you could use a PowerShell script run daily to make the actual changes. It just wouldn't do it automatically based on a new app being created.
PowerShell support - Power Platform | Microsoft Docs
Hello @neerajalig,
In addition to @Pstork1 suggestion, you should be able to do this programmatically.
Are you using the Center of Excellence starter kit? If you have set up the CoE Core Components, a flow automatically syncs all Power Apps into the Dataverse table "PowerApps Apps". You could create a flow that listens to new records in this table. Whenever a new app is added, you could use the "Power Apps for Admin" connector to change the owner of the app:
If you want to limit this to certain environments, you could use filter criteria on the trigger.
As an alternative to deploy the CoE as @joe recommends, you could try importing this flow and adapt it to your needs
Notify unauthorized app creators and give administrators access
It uses and AD group of restricted users as a filter, and grants co-owner permissions to administrators into any apps created by them.
Hope this helps, cheers.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
6 | |
5 | |
4 | |
2 | |
1 |