microsoft / coe-starter-kit

Other
750 stars 221 forks source link

[CoE Starter Kit - BUG] Orphaned Object notification when user is still with the business #9213

Open Alyson95170 opened 21 hours ago

Alyson95170 commented 21 hours ago

Does this bug already exist in our backlog?

Describe the issue

Hi I have raised this a couple of times now and the upgrade did not resolve the issue, so unsure what steps I can take next https://github.com/microsoft/coe-starter-kit/issues/9153

I am on version 4.43, when CLEANUP - Admin | Sync Template v3 (Orphaned Makers) runs this is true for Apply to each not orphaned flow Image

but in the admin centre Flow is Orphaned is equal to yes Image

Then email sent to the manager to inform that there are orphaned objects does not list any flows or apps Image

I don't understand why these 2 flows are showing as orphaned when the owner is still with the Company, any help on this issue would be great thanks.

Expected Behavior

No response

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?

CLEANUP - Admin | Sync Template v3 (Orphaned Makers)

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

No response

Anything else?

No response

Jenefer-Monroe commented 20 hours ago

OK now that you are on latest, please run that flow again for the repro:

You'll need the Flow and Envt ID. image

Then open the run and see what happens here, basically let me know what path it goes down and how it turns out. Image

Alyson95170 commented 20 hours ago

Thanks I will do this now

Alyson95170 commented 20 hours ago

This shows as a successful run but no action taken Image

Jenefer-Monroe commented 20 hours ago

ok please dive into this to see where it terminates Image

Alyson95170 commented 20 hours ago

Sorry I never took the Default out for the env ID I have ran again and still showing orphaned as true Image

Jenefer-Monroe commented 19 hours ago

Its strange that the If not, add them, and Get Maker actions are not running. Image

Can you please go up in the flow

  1. First two calls correct? Can you validate if these two calls appear to be returned correctly? Image

  2. If flow is a solution flow, does it go down this path? And if so where does it go from there? Image

  3. If not a solution flow, does it go down this path? And if so what happens in there? Image

  4. Now we're in the same scope as you showed, does the OwnerID pass and what does it show? The correct user? Image

Alyson95170 commented 19 hours ago

first calls returned correct Image

Follows path of true for solution flow Image

Get owner details has no data? Image

Jenefer-Monroe commented 19 hours ago

oh good we're coming in to the issue. What is returned for these two calls? Image

Jenefer-Monroe commented 19 hours ago

Then also go to the flow itself and see who is shown as owner here: image image

Alyson95170 commented 19 hours ago

Image

Alyson95170 commented 19 hours ago

The owner is the Service account we use for the CoE Image

Jenefer-Monroe commented 19 hours ago

And this is correct yes? Its the GUID for the user? Image

Alyson95170 commented 18 hours ago

When I look at the output from this is showing the correct user by the name, but when searching in the users table for the guid which is for _ownerid_value this is not giving any results Image

the set flow owner is blank Image

Jenefer-Monroe commented 18 hours ago

sweet we're almost there.

Can you search for the user by display name in that User table? Image

Can you go look for that user in user list in PPAC? Image

Alyson95170 commented 2 hours ago

The user is showing in the user table and they are system admin of the CoE environment.