3 Simple Ways To Change The Owner Of A Power Apps App

3 Simple Ways To Change The Owner Of A Power Apps App

If the owner of a Power Apps app left your company and you need to transfer it to a new owner you’ve come to the right place. This set of step-by-step instructions will help you quickly re-assign the ownership of an app. There are 3 ways to change an app owner: by creating a Power Automate flow, writing a PowerShell script or using the Center Of Excellence Starter Kit. Review your options below and choose the method that is the easiest for you.

Table Of Contents:
• Introduction: The Inventory AppGathering Information Needed To Change The Power Apps App Owner
     Obtain The Environment ID
     Get The Power Apps App ID
     Find The New Owner's User Account Object IDMethod 1: Change Power Apps App Owner With A FlowMethod 2: Change Power Apps App Owner With PowerShellMethod 3: Change Power Apps App Owner Using The Center Of Excellence Starter Kit




Introduction: The Inventory App

The Inventory App is used by warehouse workers at a clothing retailer to keep track of inventory levels.



Unfortunately, the canvas app’s owner left the company so we need to transfer ownership to another account.




Gathering Information Needed To Change The Power Apps App Owner

To change the owner of a Power Apps app we will need to gather 3 pieces of information:

  • Environment ID from the Power Apps maker portal
  • App ID from the Power Apps maker portal
  • User Account Object ID from Azure Active Directory



Obtain The Environment ID

Open make.powerapps.com and open the settings menu. Choose developer resources.



The Environment ID will appear in the developer resources menu.



Get The Power Apps App ID

Go to the Apps menu in the maker portal, select the three dots beside the app then click Details.



The App ID will appear in the Details menu.



Find The New Owner’s User Account Object ID

Login to portal.azure.com and search for the user account you want to transfer ownership to. In this case we will make a user called Power Platform Service Account the Owner.



The Object ID will appear in the user’s profile.




Method 1: Change Power Apps App Owner With A Flow

The first way we can change the owner of a Power Apps app is by building a flow to transfer ownership. Create a new Power Automate flow with an instant trigger. Name the flow Change App Owner, select Manually trigger a flow then click Create.



Add the flow action Power Apps For Admins – Set App Owner with the following parameters and fill in the environment name, Power App Name and New PowerApp Owner with the unique identifiers we gathered earlier.




Run the flow.



The Power Platform Service Account now owns the app.




Method 2: Change Power Apps App Owner With PowerShell

If you like to use PowerShell for automating administrative tasks there is a robust library of Power Apps cmdlets including a cmdlet to set the Power App owner. Open the Windows PowerShell ISE and Run as administrator.



Create a new script called ChangeAppOwner.ps1



…and paste the following code into the text editor. Switch the environment name, app name and new app owner with your own information then press the green play button to execute the script.

$EnvironmentName = 'Default-f1b8b509-50a4-4a5c-8e48-bf3d3e7c10ed'
$AppName = '3b328263-ef5e-4db8-b360-d74eb474b8af'
$NewAppOwner = '6857d910-10c3-485e-a492-6456ce2f1625'

Set-AdminPowerAppOwner –AppName $AppName -AppOwner $NewAppOwner –EnvironmentName $EnvironmentName



The Power Platform Service Account is now the app owner.




Method 3: Change Power Apps App Owner Using The Center Of Excellence Starter Kit

The Power Apps Center Of Excellent Starter Kit offers the easiest way to change a Power Apps App owner. Open the canvas app called Admin – App Permission Center that is included in the CoE Starter Kit. Browse to the app’s environment, select the app from the list and then click Add Permissions.



Search for the new app owner and select their user account from the list. Change the Selected User Role to Owner and press Save.



The Power Platform Service Account is now the app owner.





Questions?

If you have any questions about 3 Simple Ways To Change The Owner Of A Power Apps App please leave a message in the comments section below. You can post using your email address and are not required to create an account to join the discussion.

Matthew Devaney

Subscribe
Notify of
guest
7 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Oluwatobi Yusuf
Oluwatobi Yusuf
30 days ago

Congratulations on your 100th blog post. Thanks for your constant amazing contents.

I personally will go with option one (using power automate).

Frans
29 days ago

Great article Matthew! I’m facing a slightly different problem. I want to delete a connection whose administrator has been removed. The Flow runs successfully, but the connection remains. 

Should it be possible with this method?
Thanks a lot!

gary payne
gary payne
28 days ago

Thanks for that clear explanation. I think there is a fourth option, too: by opening the Environment in the Power Platform Admin center, and then viewing all the Power Apps in that environment, you can sort the list of apps by Owner.

Then you can select “Share” from the context menu for a Power App in that list with a departed owner, and can add a new owner through the UI. This ability requires that you have the role of Power Platform administrator.

gary payne
gary payne
1 day ago

You are absolutely right, of course – this approach just adds a co-owner rather than re-assigning the primary owner. That said, it does allow an owner to be set for orphaned apps whose original owning account has been deleted

Thomas Vestergaard
28 days ago

Would this work if i only need to add a co owner?