Hi there,
We did a PowerShell script to extract informations of all flows accross an environment in order to be able to monitor stuff that are not available in the OOTB audit. We used the PowerApps admin cmdlets in order to get everything we could on the Flows/PowerApps and everything works as expected except one really annoying thing, which in my opinion is clearly a bug :
The Get-AdminFlow command does NOT return the Flow's "Definition" property, only the "DefinitionSummary" property which is totally useless, because for example I can see a "SendMail" action is used but I can't see where the email is sent etc...
There is multiple articles saying that in order to get the full definition, you have to :
- Set the current user as a Flow owner
- Run the "Get-Flow" command which does return de "Definition" property (while Get-AdminFlow doesn't, go figure)
- Then remove the current user as a Flow owner
This sounds like a great solution, however what these articles fail to talk about is the fact that by doing this, ALL personnal Flows of the company will move from "My Flows" to "Team Flows" for every single user, which is really confusing for users. You would think that removing the service account from the owners after getting the definition would solve the problem, but no, this is a documented issue, once a Flow becomes a "Team Flow" (because more than one owner), there is no way to bring it back to a regular Flow even though you leave only a single owner.
So unless this bug is fixed, there is no way the solution above is viable, which leaves administrators with no way to get a Flow's full definition.
Is there any plan to fix either the "Get-AdminFlow" command or the "Team Flows" issue? That would be really helpfull.