Forum Discussion

Rahul Suryawanshi's avatar
Rahul Suryawanshi
Copper Contributor
Feb 19, 2018
Solved

SharePoint Online CSOM for creating Site Collection App Catalog

Hi All, I know that there is PowerShell cmdlets to create and remove site collection app catalog. Question is are there CSOM APIs available to do the same?
  • VesaJuvonen's avatar
    VesaJuvonen
    Feb 26, 2018

    Hi,

    you should be able to do that with following CSOM commands as long as you are using relatively new CSOM NuGet version. You will need to have owner privileges to the tenant app catalog site collection to make this call.

     

    Web.TenantAppCatalog.SiteCollectionAppCatalogsSites.Add(this.Site.Url);

Resources