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.

Report
All responses (
Answers (