List all site collections with app catalog enabled

5 Mar

This information is published on the world wide web but I find myself looking it up all the time. So for my own convenience:

To list all site collections in the tenant that have the site collection app catalog enabled, use the URL:

https://<tenant-app-catalog-URL>/Lists/SiteCollectionAppCatalogs/AllItems.aspx

Or with PowerShell:

$appCatalog = Get-PnPTenantAppCatalogUrl
Connect-PnPOnline -Url $appCatalog -Credentials DevAdmin

$items = Get-PnPListItem -List "Site Collection App Catalogs"
$count = 1
foreach($item in $items){
	Write-host $count "-" $item.FieldValues.Item("SiteCollectionUrl")
	$count = $count + 1 
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.