cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
neerajalig
New Member

Add services account as owner automatically when anyone create PowerApps in particular environment

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 

 

3 REPLIES 3
Pstork1
Dual Super User III
Dual Super User III

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



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
joe_hannes_col
Continued Contributor
Continued Contributor

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:

joe_hannes_col_0-1630669508420.png

If you want to limit this to certain environments, you could use filter criteria on the trigger.

FGRoy
New Member

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.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,909)