microsoft / coe-starter-kit

Other
742 stars 218 forks source link

[CoE Starter Kit - BUG] Embedded PowerApp to manage apps/flows in PowerBI Dashboard does not work after August COE release #8997

Open dd767 opened 2 days ago

dd767 commented 2 days ago

Does this bug already exist in our backlog?

Describe the issue

Everything worked fine before upgrade to August release files.

When trying to manage access for a powerapp using the embedded app in the Powerbi Dashboard, i get an error related to access to another environment which has nothing to do with the one i'm currently viewing (filtered) and where the Powerapp that i try to manage access permissions resides on.

When trying to manage Powerapps access i get:

PowerAppsforAdmins.GetAdminApp failed: { "error": { "code": "EnvironmentAccess", "message": "The user with object id 'AAAAAAA' in tenant 'BBBBBBB' does not have access to permission 'List Any PowerApps' in environment 'CCCCCC'. Error Code: 'UserMissingRequiredPermission'" } }

When trying to manage Automate Flows, i get:

PowerAutomateManagement.AdminGetFlow failed: { "error": { "code": "EnvironmentAccessDenied", "message": "You are not permitted to make flows in this 'DEFAULT ENVIRONMENT(default)'. Please switch to the default environment, or to one of your own environment(s), where you have maker permissions." } }

I am an admin on the COE environment and admin as well on the environment i try to manage apps/flows access on. As i mentioned before, this worked fine before we updated COE package with August release.

Expected Behavior

To open & use the embedded PowerApp in the COE PowerBI Dashboard to manage apps & flows access (add/remove users, owners, grant myself access, etc.)

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.43

What app or flow are you having the issue with?

Admin - Access this App [works embedded in Power BI only], Admin - Access this Flow [works embedded in Power BI only]

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

Open COE PBI Dashboard Go to Apps Deep Dive Filter by environment where i am admin Find app in table Rightclick, drill-thru, manage app access

Anything else?

No response

Jenefer-Monroe commented 2 days ago

Hello you need to reconfigure these apps whenever you upgrade the kit and dishboard. Configure embedded apps in the CoE dashboard

dd767 commented 1 day ago

Hello you need to reconfigure these apps whenever you upgrade the kit and dishboard. Configure embedded apps in the CoE dashboard

Hi Jen, we did follow that guide after upgrade. Even went thru it again today, set everything again. Same result. It's other users also getting the errors. Somehow it doesn't register/pass the environment that the app you're trying to manage to the embedded app startup "variables". The error message is listing some environment that has nothing to do with the one we're on to manage.

Strangely, for managing flows, the error message says we don't have maker rights on the default environment, which is complete nonsense.

I am a system admin on the COE environment and an environment admin on the one i'm trying to manage app/flow accesses via the embedded app.

Could it be that the flows that invoke PowerAppsforAdmins for example (when clicking an app, right click, drill down, manage app permissions) to open the embedded management PowerApp, have an issue?