Governance in M365 – Export all Flows in your tenant

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

Advertisement

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s