1

We have some people who have installed apps from the sharepoint App Store. (Adobe Sign)

How can i get a list of all sites within our o365 tenant that have this (or other 3rd party apps) installed?

1

Use the below command :

Get-SPOAppInfo -Name " " | Sort Name

Description about the Get-SPOAppInfo command:

The Get-SPOAppInfo cmdlet gets all the installed applications from an external marketplace or from the App Catalog that contain Name in their application names or the installed application with mentioned ProductId. ProductId takes precedence if not empty.

MSDN Reference:

Get-SPOAppInfo

We can use the below PnP code:

Get-PnPApp

The above command will return all apps installed in the "App Catalog" site collection(tenant-level). We can write for each loop something like below to get the details about the specific app.

$allAppsInAppCatalog=Get-PnPApp

foreach($oneApp in $allAppsInAppCatalog)
{
  #Now. using the $oneApp attribute we can get the details of a particular app.    
  Write-Host $oneApp.Title
}

For detailed about the Get-PnPApp command refer to the below MSDN article:

Get-PnPApp

Using the client-side CSOM C# code

using (ClientContext context = new ClientContext("https://youroffice-admin.sharepoint.com")) 
{ 
    
    Tenant tenant = new Tenant(context);
    tenant.Context.Load(tenant);
    tenant.Context.ExecuteQueryRetry();


    var appCatalogAppInfoCollection = tenant.GetAppInfoByName(string.Empty);
    tenant.Context.Load(appCatalogAppInfoCollection);
    tenant.Context.ExecuteQueryRetry();

    foreach (var app in appCatalogAppInfoCollection)
    {
        Debug.WriteLine("APP: " + app.Name);
        Debug.WriteLine("Source: " + app.Source);
    }
}

Source:

How to get the list of custom apps in App catalog using Powershell?

6
  • Hey, thanks for the quickl reply. Get-PNPApp seems to only apps deployed in the catalog. It does not show apps installed from the Microsoft store.
    – RussGove
    Apr 18 '20 at 17:22
  • Ohhk - you can use this command Get-SPOAppInfo - the MSDN description says the Get-SPOAppInfo cmdlet gets all the installed applications from an external marketplace or from the App Catalog that contains Name in their application names or the installed application with mentioned ProductId. please see the updated answer. Apr 18 '20 at 17:45
  • yeah, that shows all apps installed on the tenant., but not what sites their on , I finally found rest api tenant.sharepoint.com/sites/sitename/_api/web/apptiles. Each AppTile returned has an AppSource. I believe appsource of 1 means its from the store. Still testing.
    – RussGove
    Apr 18 '20 at 21:43
  • Good, you have found another alternate solution REST API... however, I think using the command Get-SPOAppInfo , we can get app information... try to loop through this collection then inside foreach loop we can each individual app details.... I have not tested this, but generally it is supposed to be. :-) Apr 19 '20 at 0:51
  • Thanks, Get-SPOAppInfo does work when i call it on each individual site.
    – RussGove
    Apr 19 '20 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.