cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
deacaroo
Level: Powered On

Listing flows and their owners across a tenant

Hi there,

 

I'm looking to introduce a bit of discipline into our flow creation/management and want to coordinate this using a SharePoint list. The idea is to populate all Flows across all environments on the list and then add the owners to a multi-person field.

I've managed to list all the flows and write these to the list but I stuck at listing the owners!

 

- I've tried the 'List Flow Owners' action, but this only returns flows which the connection is named as an owner (I need to list ALL owners for ALL flows in our tenant!).

- I've also looked into the 'Get Flow Owner Rols as Admin (preview)' action - but again, I can't see any easy way to access owners from that and the documentation is sparse to say the least.

 

Any help greatly appreciated!

 

Thanks

 

Ben

3 REPLIES 3
Super User
Super User

Re: Listing flows and their owners across a tenant

Hi @deacaroo 

 

You can use the List Flows as admin action  to list all the Flows within that envrionment

 

and then for each loop of the previous action - use the List Flow Owners to get the owners per flow

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

deacaroo
Level: Powered On

Re: Listing flows and their owners across a tenant

Thanks for the response Reza - how do i extract the name from the resultant array then resolve it to an email address? Presumably it's best to load it into an array then pass direct to the multi-person field on sharepoint? Apologies - definitely at the edge of my capabilities here! Thanks,

Ben

 

List Owners response:

[

  {

    "name": "xyz",

    "id": abc",

    "type": "/providers/Microsoft.Flow/environments/flows/owners",

    "properties": {

      "permissionType": "Principal",

      "principal": {

        "id": "xyz",

        "type": "User"

      }

    }

  },

  {

    "name": "xyz",

    "id": abc",

    "type": "/prov...

Super User
Super User

Re: Listing flows and their owners across a tenant

Hi @deacaroo 

 

For loop the List Owners response

 

and within the loop use expressions to get the name use 

item()?['Name'] - expression

 

 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 87 members 3,348 guests
Please welcome our newest community members: