How to change PowerApps Owner (with PowerShell)

What will you do if you have an application built with PowerApps and the owner of this application is a user who no longer has an account or whose information you cannot access? If you had access to the existing owner account, the process was quite easy. With the user account that is the owner, you could share the application with another user and assign that user as the Co-Owner. However, if you cannot access this user, you can get the owner of the application with the tenant admin account and a little PowerShell command.

First of all install PowerApps modules.

Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber

Then log in to the PowerShell session with the tenant admin account.


Finally transfer ownership of the app.

Set-AdminPowerAppOwner -AppName '[AppId]' -AppOwner $Global:currentSession.userId -EnvironmentName '[EnvironmentId]'

Where is [AppId]? AppId is a GUID which identifies your application. And you can find it on application details.

Or you can find it on url which you play your application.

Where is [EnvironmentId]? Environment id is a GUID which starts with “Default-“. And you can access your PowerApps environment id on your PowerApps management site’s url.

Thats it! Your new app owner is your tenant admin account. And now, you can easily change the owner of the app or add another account as Co-Owner by default ways.

Add a Comment

Your email address will not be published.