Read-only PowerShell script that lists every canvas app and cloud flow you own or can access across your Power Platform environments. No admin role needed.
- Experimental
- Maintenance: Active
- PowerShell Script
Maintained by Manoj Annavajjala (Creator). Repository owner: sannavajjala.
Supported products
Power Platform
Power Apps canvas apps and Power Automate cloud flows in any environment you can access.
What problem it solves
Makers rarely know everything they own across environments. Before a role change, leaving a team or a handover, finding every app and flow by hand is slow and easy to get wrong.
Who should use it
Business User, Maker
Makers and business users who build in Power Apps or Power Automate, and anyone preparing a handover.
What it does
Signs in as you, goes through every environment you can access, and lists each canvas app and cloud flow with its environment, owner, on or off state and last modified date. Saves the list to my-power-platform-resources.csv.
Lists every canvas app and cloud flow you own or that is shared with you, across all your Power Platform environments, and saves the list to a CSV file. It signs in as you and needs no admin role.
The script
Read the whole script before you run it. To use it, copy the code below into a file named Get-PPEMyPowerPlatformResources.ps1, then run it from Windows PowerShell 5.1.
<#PSScriptInfo.VERSION 0.1.0.GUID 7ed7c0d7-4771-420b-9c52-b59de9462b70.AUTHOR Power Platform Engineer.COMPANYNAME Power Platform Engineer.COPYRIGHT (c) Power Platform Engineer. MIT License..TAGS PowerPlatform PowerApps PowerAutomate Flow Maker Inventory Handover Report.LICENSEURI https://github.com/sannavajjala/power-platform-scripts/blob/main/LICENSE.PROJECTURI https://powerplatformengineer.com/tools/my-power-platform-resources-script/.EXTERNALMODULEDEPENDENCIES Microsoft.PowerApps.PowerShell.RELEASENOTES Initial release.#><#.SYNOPSIS Lists the canvas apps and cloud flows you can access in every Power Platform environment. No admin role needed..DESCRIPTION Read only. Signs in as you and lists, per environment, the canvas apps and cloud flows you own or that are shared with you, with owner and last modified date. Useful before a role change or leaving a team, for a handover, or simply to find that app you built two years ago. Uses the maker module Microsoft.PowerApps.PowerShell, which shows only resources you own or that are shared with you. Runs in Windows PowerShell 5.1. Writes my-power-platform-resources.csv to OutputPath and returns the rows..PARAMETER OutputPath Folder for the CSV file. Created if missing. Default: current folder..PARAMETER SkipConnect Use an existing Add-PowerAppsAccount session..EXAMPLE .\Get-PPEMyPowerPlatformResources.ps1.LINK https://powerplatformengineer.com/tools/my-power-platform-resources-script/#>#Requires -Version 5.1[CmdletBinding()]param( [string]$OutputPath = (Get-Location).Path, [switch]$SkipConnect)function Get-PPEValue { param($InputObject, [string]$Path) $current = $InputObject foreach ($segment in $Path.Split('.')) { if ($null -eq $current) { return $null } $prop = $current.PSObject.Properties[$segment] if ($null -eq $prop) { return $null } $current = $prop.Value } return $current}if (-not (Get-Command -Name Get-PowerAppEnvironment -ErrorAction SilentlyContinue)) { throw 'Microsoft.PowerApps.PowerShell is required. Install it in Windows PowerShell 5.1 with: Install-Module Microsoft.PowerApps.PowerShell -Scope CurrentUser -AllowClobber'}if (-not $SkipConnect) { Add-PowerAppsAccount | Out-Null }if (-not (Test-Path -Path $OutputPath)) { New-Item -Path $OutputPath -ItemType Directory -Force | Out-Null }$environments = @(Get-PowerAppEnvironment)$rows = New-Object System.Collections.Generic.List[object]foreach ($env in $environments) { $envId = Get-PPEValue $env 'EnvironmentName' $envName = Get-PPEValue $env 'DisplayName' try { foreach ($app in @(Get-PowerApp -EnvironmentName $envId -ErrorAction Stop)) { $owner = Get-PPEValue $app 'Owner.displayName' $rows.Add([pscustomobject][ordered]@{ Type = 'Canvas app' Name = Get-PPEValue $app 'DisplayName' Environment = $envName Owner = $owner State = '' LastModified = Get-PPEValue $app 'LastModifiedTime' Id = Get-PPEValue $app 'AppName' }) } } catch { Write-Warning ('Could not read apps in {0}: {1}' -f $envName, $_.Exception.Message) } try { foreach ($flow in @(Get-Flow -EnvironmentName $envId -ErrorAction Stop)) { $state = 'Off' if ([bool](Get-PPEValue $flow 'Enabled')) { $state = 'On' } $rows.Add([pscustomobject][ordered]@{ Type = 'Cloud flow' Name = Get-PPEValue $flow 'DisplayName' Environment = $envName Owner = '' State = $state LastModified = Get-PPEValue $flow 'LastModifiedTime' Id = Get-PPEValue $flow 'FlowName' }) } } catch { Write-Warning ('Could not read flows in {0}: {1}' -f $envName, $_.Exception.Message) }}$sorted = @($rows | Sort-Object -Property Environment, Type, Name)$sorted | Export-Csv -Path (Join-Path $OutputPath 'my-power-platform-resources.csv') -NoTypeInformation -Encoding UTF8Write-Information -MessageData ('{0} apps and flows found across {1} environments.' -f $sorted.Count, $environments.Count) -InformationAction Continue$sorted
Requirements and permissions
- Minimum requirements
Windows PowerShell 5.1 on Windows. The Microsoft.PowerApps.PowerShell module. A Power Apps or Power Automate license that lets you sign in to the environments.
- Dependencies and modules
Microsoft.PowerApps.PowerShell (install with Install-Module Microsoft.PowerApps.PowerShell -Scope CurrentUser -AllowClobber).
- Permissions requested
Your own Power Platform sign-in. No admin role and no Microsoft Graph permissions.
- Administrator access needed
No
- Dry-run mode
Not applicable
Installation and usage
1. Open Windows PowerShell 5.1.
2. Install the module: Install-Module Microsoft.PowerApps.PowerShell -Scope CurrentUser -AllowClobber
3. Save the script below as Get-PPEMyPowerPlatformResources.ps1.
4. Run it and sign in when prompted.
.Get-PPEMyPowerPlatformResources.ps1 -OutputPath C:ReportsReal-world use case
Before moving to a new team, run the script, attach the CSV to your handover note and agree new owners for each app and flow.
Example output
A CSV with one row per app or flow: Type, Name, Environment, Owner, State, LastModified and Id.
Security and operational considerations
- Data accessed
Names, environments, owners, on or off state and last modified dates of the canvas apps and cloud flows you can see. Nothing is read from inside the apps or flows.
- Privileged or tenant-changing operations
None. The script only reads and writes one CSV file on your computer.
- External services contacted
Power Platform service endpoints, through the Microsoft module.
- Telemetry or data collection
None. The script sends nothing anywhere except the Microsoft calls needed to list your resources.
- Storage of secrets
None. Sign-in is handled by the Microsoft module; the script stores no credentials.
- Rollback options
Nothing to roll back. Delete the CSV file if you no longer need it.
- Safe test procedure
Run it first with -OutputPath pointing to an empty test folder and check the CSV. The script changes nothing in Power Platform, so a normal run is safe.
- Known limitations
Lists canvas apps and cloud flows only, not model-driven apps, desktop flows or Copilot Studio agents. Owner is not shown for cloud flows. Version 0.1.0 has been tested against simulated data only.
- Support boundaries
Community script provided as is under the MIT License. Not supported by Microsoft.
Version and release
- Release maturity
Experimental
- Maintenance status
Active
Changelog
0.1.0: first version.
Share your feedback