cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Dual Super User
Dual 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

Highlighted
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...

Dual Super User
Dual 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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 477 members 6,417 guests
Recent signins:
Please welcome our newest community members: