-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CoE Starter Kit - BUG] Embedded PowerApp to manage apps/flows in PowerBI Dashboard does not work after August COE release #8997
Comments
Hello you need to reconfigure these apps whenever you upgrade the kit and dishboard. |
Hi Jen, we did follow that guide after upgrade. Even went thru it again today, set everything again. Same result. 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? |
yes, we did all the steps above! |
I'm really not sure. This is working for me. Can you share a screenshot of where you are failing? |
My user has System Admin Permissions on the COE environment, has a PowerBI Pro license and a PowerApps per User premium license. No unmanaged layers. The issue is reproduce-able by other users as well. For FLOWS: I get this error: (from PowerAutomateforAdmins ?!?). The error message is stupid, because it refers to the DEFAULT environment where everyone has maker rights. The flow i am trying to manage is NOT in the default environment, as stated above. For APPS: I get this error: (from PowerAppsforAdmins ?!?) Did something maybe change in August/September releases in the way the embedded app calls / checks user permissions when invoking the PowerAutomateforAdmins / PowerAppsforAdmins connectors in the respective flows? To me it looks also like now (since 2 releases) it's trying to somehow "poll" the whole tenant, or more environments than it should, when calling this embedded apps. It's not sticking to the environment where the app or flow is residing. I am not a tenant admin, but even with the rights i have the error message for flows is hilarous for 2 reasons: it's picking on an environment which has nothing to do with COE or where the flow is hosted, plus it's complaining about not having maker rights on the DEFAULT one...which everyone has by default anyway. The apps error message is also out of place, because -indeed i have no access to the environment it's complaining about in the error - but the app i was trying to manage is my OWN, running in an environment where i am environment admin. Looking at it logically, the only "common denominator" is the source of the errors: "........forAdmins" connector, let it be Flows or Apps. |
Funny enough, i can manage apps permissions just fine (in the environment i am env_admin on) using the "Manage Permissions" - admin_ManagePermissions MDA from the COE solution. For other environments (like default), i get a permission error, which makes sense in this case as i'm not an env_admin there. BTW, Flow permissions i cannot manage using the admin_ManagePermissions MDA, it gives a message at the bottom saying "...not possible using this product, so changing it here only changes it in the context of your COE toolkit......" -> but i guess this s another topic, not related to this bug entry. |
Are the false envt GUIDs it gives you in your tenant? |
yes |
I'm stumped, this is working for me. It must be some permissions issue for you.
|
to #3: this is i think the key difference from before aug/sept COE releases. For the sake of using that embedded app, i was made also a system admin on the COE Environment, but doesn't make a difference. Somehow i think the scope of the embedded apps was limited to "full" Power Platform Admins since aug/sept releases, since obviously is giving us a lot of errors since. Worked absolutely fine before August release. Can you confirm this behavior/logic change? I remember reading a somewhat similar issue (from Commonwealth of Virginia), but it was over an year old! Again, before Aug/Sept releases i could manage my apps/flows/orphans with no issues using this embedded app in the COE PBI Dashboard, with the same rights i have now (and which now don't work anymore). |
Are you saying that you used to be able to manage (ex update permissions for) apps/flows you did not own in environments to which you were not Sys Admin, while not having PPAdmin role? |
yes. I never had the PPAdmin role on the tenant. and as mentioned here #8997 (comment) i can still do it now for powerapps in "my" environment with the admin_ManagePermissions MDA |
Sorry I still dont follow. Are you saying this was possible before? Default envt
CoE Envt
PBI |
Correct, except Foo was not in default env, but in one which i'm env admin on (sandbox environment type / no dataverse except for approvals). In the default env i'm just a maker like everyone else. |
ok sorry we are talking over each other. I believe your answer is no then. That is not what was possible. |
when setting up that app, they chose the COE environment. I have new info reg. this. The only person in our team who can actually run the embedded app with no error (he is powerplatform admin) is reporting that when it opens, it always shows the same powerapp & users, regardless of which one he clicked on to drillthru-manage app access. So it seems the filtering in the COE Dashboard is not passed thru properly to the embedded powerapp. So the AppID passed to the embedded app is always the same, regardless of which app/environment you want to manage apps from. For the rest of us the app gives an error (like i posted above) but it's always the same, complaining about same app/environment regardless of which app/environment we tried to drillthru-manage app acccess |
yes, these two: AppID and EnvironmentID appear correctly in the embedded app, but the errors appear mentioing always another environment. Somehow we think the powerapp (via the powerapps visual) does not reset the variables it receives from the PBI? COE September PBIX refreshes OK. So we have 2 repro scenarios:
i will be joining the office hours call tonight (for me), maybe we can look at it together or schedule something for later if the time/event is not right for this kind of t-shooting. |
Sorry we are not able to have calls with our users. There is only one person staffing all 12k installs. |
which control, where? |
ok it looks like there may have been a change in canvas such that the input fields are not deterministically being picked up. |
thanks Jen! :) persistence paid off ;) |
It does pay off! haha |
It looks like these just needed republished in order to be fixed. I have republished both the embedded apps and now they appear to consistently get the correct app and envt id |
May have just been a bug in the version they were using before republish |
Fix is available in Nov release. Please see latest release to see all changes or just download directly via https://aka.ms/coestarterkitdownload |
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
The text was updated successfully, but these errors were encountered: