Governance in M365 – Export all Flows in your tenant

Posted by

First of all, what you will need to do is to install the Power Apps and Flow for Admins module, which can be done using the following command:

  • Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
  • Install-Module -Name Microsoft.PowerApps.PowerShell –AllowClobber​


Once it has been done,d you’re ready to go

Get-AdminFlow | ForEach-Object { $user = Get-UsersOrGroupsFromGraph -ObjectId $_.CreatedBy.userId;[PSCustomObject]@{ FlowName = $_.DisplayName; OwnerName = $user.DisplayName ; OwnerEmail = $user.UserPrincipalName ; }; } | Export-Csv -Path .\Flows.csv

In case you need to export the connections, you can execute the following command:

Get-AdminPowerAppEnvironment -Default | Get-AdminPowerAppConnection

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s