microsoft / coe-starter-kit

Other
739 stars 216 forks source link

How to rescan outdate status in tables without trigger approval email #7713

Closed KV-MY closed 5 months ago

KV-MY commented 6 months ago

Does this question already exist in our backlog?

What is your question?

We have few governance approval flows being trigger daily/weekly to app/flow owner/manager, such as Orphaned Object Reassign and Cleanup Old Objects App. What happen is often these app/flow has been manually updated by admin without user response from the CoE approval email, but the CoE still triggering the approval email because of the outdated status still keep in CoE tables.

  1. How could we update the outdated status in coe table with latest Owner and activity status? Perhaps is there a coe flow to rescan the app/flow so the tables could update with latest activity/orphan/owner status without keep sending the approval/notification.

  2. Is there an easy way for us to manage these approval email send to owner/manager, such as cancelling the approval on behalf of owner/manager that is no longer require.

What solution are you experiencing the issue with?

Governance

What solution version are you using?

No response

What app or flow are you having the issue with?

No response

What method are you using to get inventory and telemetry?

None

AB#2362

Jenefer-Monroe commented 6 months ago

Sorry its a little difficult to answer without more specifics as each solution area behaves differently.

There is an orphan check flow that runs weekly which should unmark any orphans that have been cleaned. CLEANUP - Admin | Sync Template v3 (Orphaned Makers)

For inactivity, there is this app which can be used to manage outstanding approvals. Do note that it is up for rewrite soon so its not the best. App and Flow Inactivity Notifications Clean Up image

KV-MY commented 6 months ago

Hi Jenefer, Thanks for the comment, CLEANUP - Admin | Sync Template v3 (Orphaned Makers) i can see each completed jobs for this flow were only checking for first 256 list rows from table, is this explain why some of our updated app/flow still not being cleanup by this flow?

image

Jenefer-Monroe commented 6 months ago

Without an explicit case its difficult to debug. Is the app getting the owner updated in the inventory and just the app-is-orphan flag stale? That is the case that would get caught here. Where / what tool are you using to fix up orphans?

KV-MY commented 6 months ago

Hi Jenefer, i'm not sure where and who updated the new owner before, but from Power Platform Admin Center, i can see the app has new owner assigned with latest modified date.

Could you guide me where to check the inventory so i can get the app detail and orphan flag status for you?

Jenefer-Monroe commented 6 months ago

If you go to the Power Platform Admin View app you can adjust the columns to display the current owner and the App is Orphaned fields. Can you find your app there and see if the owner is correct? And the value in App is Orphaned? image

KV-MY commented 6 months ago

From Power Platform Admin View app > PowerApps Apps, i can see the app still showing old owner and still mark as Yes in App is Orphaned

From Power Platform Admin Center > Environment > Resources > Power Apps, i can see the app is showing new owner

i have also check and confirm the app ids are same in above Power Platform Admin portal.

Jenefer-Monroe commented 6 months ago

Can you please share a screenshot like this so we can see what solutions you have installed in this environment? Be sure to show all records (all rows) and expand the indicated columns so that we can see full names image

KV-MY commented 6 months ago

When i was in Solutions, that problematic app's environment does not show in the selection on top right corner, is that means this app does not has solutions installed?

Jenefer-Monroe commented 6 months ago

Are you saying the environment does not show up here? image

KV-MY commented 6 months ago

Yes, the specific environment that has outdated app is not show up there. Also, The App and Flow Inactivity Notifications Clean Up, i dont see this include the approval for Orphaned Object we send to Manager , is there other App we can monitor and delete the approval for Orphaned Object ?

Jenefer-Monroe commented 6 months ago

OK if its not showing up there then you do not have sys admin access to the environment.

Does the identity running the flow have the Power Platform Admin Role permanently and directly assigned?

Has your organization opted in to the Manage admin roles with Microsoft Entra Privileged Identity Management (preview) preview feature?

KV-MY commented 6 months ago

We dont assign any Power Platform Admin Role to identity running the flow.

Let me get back to you once i opt in for Entra ID PIM in Power Platform

Jenefer-Monroe commented 6 months ago

The coe kit does not yet work with this feature: Manage admin roles with Microsoft Entra Privileged Identity Management (preview) Thats why I asked, people who have opted in are broken with the kit. The feature is blocked from rolling further until they add a feature we need to make it work with the kit.

The identity running the flow needs to have the Power Platform Admin Role permanently and directly assigned. Please see What identity should I install the CoE Starter Kit with?

Without this you will only get environments for which the identity running the flow happens to have admin access

KV-MY commented 6 months ago

Thanks for clarification. in this troubleshooting, i'm using Admin account that has power platform admin role permanently and directly assigned but still cant see the solution for problematic app, i can see many other apps and solutions, just this orphaned app does not has any solutions show up.

Jenefer-Monroe commented 6 months ago

So you see the envt of the app in question here now? image

KV-MY commented 6 months ago

it is still not shows up there, but i know why now, i notice that selection is only for environment with "Dataverse", my envt of the app in question does not has Dataverse.

Jenefer-Monroe commented 6 months ago

oh ok great. So I'm not sure what specific issue you are seeing, but if an app appears to be out of date you can flag it to be inventoried. Here is a screenshot showing how to do that for flows, the concept is the same for apps and all other objects: image

Change this flag to yes and the next day stale objects should be updated. Note that we should catch things like this but sometimes the system fails and so a manual poke can be needed.

KV-MY commented 6 months ago

Thanks, let me try that and monitor next day

KV-MY commented 6 months ago

unfortunately the app still show as orphaned app after 24 hours

Jenefer-Monroe commented 6 months ago

I'm still not entirely following here, sorry. Please go to the actual object in the product and find who is the owner. image image

Is that person still in the Entra under all users? image

Do they show as enabled? image

KV-MY commented 6 months ago

This is the App showing new owner Luiz and his account is enabled in Azure image image image

But from Power Platform Admin View app > PowerApps Apps, i can see the app still showing old owner Zaid and App is Orphaned image

Jenefer-Monroe commented 6 months ago

Can you please share a screenshot like this so we can see what solutions you have installed in this environment? Be sure to show all records (all rows) and expand the indicated columns so that we can see full names image

KV-MY commented 6 months ago

Thanks for update, but unfortunately i cant do that, as mentioned earlier, this environment does not has Dataverse so it would not show in the solution

Jenefer-Monroe commented 6 months ago

I'm talking about the CoE envt now. I need to know what you have installed. The CoE envt must have a dataverse is otherwise it cannot support a CoE install.

KV-MY commented 6 months ago

This is the screen shot for Coe Environment image

Jenefer-Monroe commented 6 months ago

ok yes your upgrade failed. That was my suspicion, so you are in kind of an unknown state right now. Image

When upgrade fails the product often leaves an _Upgrade and an original solution sitting there. These will never converge or repair on their own, you will need to take action to resolve. If you go to history you can find where the failure occurred and download details about it. image

KV-MY commented 6 months ago

Thanks for the finding, we have separated github case #7880 to work on the upgrade issue.

Jenefer-Monroe commented 6 months ago

ok until that is resolved there isnt anything we can do here. It's unclear what state your kit is in so we cant debug further. And the oddness of your behavior indicates to me that once you get on a clean build your issue here will resolve.

Jenefer-Monroe commented 5 months ago

closing out as no further action for starter kit team

KV-MY commented 4 months ago

Hi Jenefer, follow up on the case that we have been working on. The issue is still not resolved, even though we have solved the build issue. Wonder should i open a new issue or we can continue from here, let me know, thanks.