microsoft / coe-starter-kit

Other
747 stars 219 forks source link

[CoE Starter Kit - Feature]: Show developer environment owner (created on behalf of) #7414

Open ramontebar opened 9 months ago

ramontebar commented 9 months ago

Is your feature request related to a problem? Please describe.

A service administrator can create a developer environment on behalf of other user. After the environment is created, this user is not displayed or indicated anywhere.

Describe the solution you'd like

We need a way to differentiate between the person who creates the developer environment (e.g. service administrator) and the person who uses / owns it. In the CoE Kit Environment table, when a developer environment is created on behalf of other user by an admin, the "Environment Maker" column is set as the admin, which I would say it is wrong in this scenario. Having a new column such as "Enviroment Creator" or "Enviroment Created By" would help to differentiate between these two users.

Describe alternatives you've considered

Using the Powershell command Get-AdminPowerAppEnvironment, it is possible to retrieve the user who has created the environment (Internal.properties.createdBy), and the user who owns / uses the environment (Internal.properties.usedBy). The same properties should be reflected in the CoE kit Environment table.

Additional context?

No response

AB#2027

Jenefer-Monroe commented 8 months ago

We cannot use Power Shell in the kit. Do you happen to know, is this property available when querying by the Power Automate connectors?

ramontebar commented 8 months ago

Thank you @Jenefer-Monroe for reviewing this issue.

I have run a test using the Get Environment as Admin and it doesn't return the "UsedBy" attribute 😑:

powerplatform-admin-api-get-environment-details-240116

I have also reviewed the new Power Platform for Admins V2 connector but it doesn't have an operation to retrieve the environment details yet.

How could we share this feedback with the product team so they could update these connectors?

Jenefer-Monroe commented 8 months ago

Thank you for investigating! You can provide feedback via https://powerusers.microsoft.com or any other channels that you have. I can mark this as product blocking and then we have processes based on that.

LukasKo999 commented 3 months ago

Hello @Jenefer-Monroe , the information is actually in the body of the response for Developer environment, however not visible in Power Automate UI. I am attaching a screenshot of Get Environment as Admin action response. Could you alter the Admin | Sync Template v4 (Driver) flow to consider this information for Developer environments, lot of them are createdBy "SYSTEM". Thanks a lot image