web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error message when try...
Power Apps
Answered

Error message when trying to change power app owner by power shell

(0) ShareShare
ReportReport
Posted on by 39

Hello.

I'm trying to change the owner of the application that was done within the power apps, process done via power shell, but I'm getting the following error message:

"@{code=EnvironmentAccess; message=The user with object id 'xxxx' in tenant 'xxxx' does not have access to
permission 'ManageAnyPowerApp' in environment 'xxxx'. Error Code: 'UserMissingRequiredPermission'}"

Code: 403 (Forbbiden)

I used the command "Set-AdminPowerAppOwner -AppName 'xxxx' -AppOwner $Global:currentSession.userId -EnvironmentName 'xxxx' ", this right after I logged in using "Add-PowerAppsAccount"

I really don't have permission to change the owner of the application, or am I forgetting some parameter?

Thanks to everyone who can give any tips.

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @FelipeQuagio,

    I think you should go to Power Shell forum for help:

    PowerShell Forums - PowerShell community forums

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard