cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
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
Frequent Visitor

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

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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Kudoed Authors
Users online (7,235)