when I try to change one powerapps ownership. by using
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell -AllowClobber
Add-PowerAppsAccount #login as Admin account
Set-AdminPowerAppOwner -AppName '---' -AppOwner '---' -EnvironmentName '---'
I get the following error.
Error=; Message=The user with object id '---' in tenant
'---' does not have access to permission 'ManageAnyPowerApp' in
environment '---'. Error Code: 'UserMissingRequiredPermission'
and the current environment don't have security roles setup.