Use SharePoint Libraries to distribute Office Templates and Company images

Have you heard about “SharePoint Organization Asset Libraries” ?

This feature rolled-out in the end of 2019, allows you to define some SharePoint Document Libraries as organization assets sources. What kind of assets are we talking about ? It actually enables two kinds of features:

  • The most famous is the ability to suggest organization images in SharePoint WebParts configuration. For example, you can distribute cover images for SharePoint Page header, or organization logos to be used in Image webparts or QuickLinks webparts.
  • The less famous but even more useful in my opinion, is the ability to distribute your company Office documents templates, directly into your users Office clients
Use SharePoint Libraries to distribute Office Templates and Company images
Organization Office Templates
Organization images

How does it work ?

This feature leverage the Office 365 CDN (Content Delivery Network) capabilities. A CDN is a mechanism that aims to improve considerably websites performances by providing assets the website requires (such as scripts or images) closer to the browsers requesting it.

There are actually 2 kinds of CDN in Microsoft 365: 

  • Private: The content published on the CDN requires an authentication from users accessing the content. 
  • Public: The content published on the CDN is anonymously accessible.

For SharePoint Org. assets libraries, the default CDN used is the private one, and there is actually no real reason to use the public CDN since your Office Templates and WebPart settings should only be accessible by logged-in users.

So we are basically going to publish several SharePoint Libraries to the Office 365 CDN: Our libraries are going to be identified as “Origins” for the CDN.

SharePoint set up

To host our assets, we will create a dedicated SharePoint modern Communication site, where we will create our libraries.

We can configure up to 30 organization assets libraries, but they need to be all on the same Site collection.

Either for Images or Office templates, you’ll have to create modern Documents Libraries (no need to search for the “old” Image library SharePoint application).

You can have several Office Template libraries. Each one will be represented by a folder in your Office clients. If a user doesn’t have access to a library, he will still be able to see the folder (as it is registered as an origins for the CDN) but won’t be able to see any template inside. From a functional perspective, I would rather create only one Office Template Library with company templates at the root and several folders for specific department templates. Then I will manage the visibility of the folder with SharePoint permissions.

You can, and you should, create multiple Org. Image libraries. Creating several libraries allows you to define multiple families of images, such as Cover Images, Company logos, Product images and so on, so your users can find easier what they are looking for.

Once your libraries are created, you can upload your Images and Office Templates.

All your Office Template must be upload with an “Office Template” format: 

  • potx for PowerPoint
  • dotx for Word
  • xltx for Excel
Use SharePoint Libraries to distribute Office Templates and Company images
Create document library
Create document library
Organization Office Templates
Use SharePoint Libraries to distribute Office Templates and Company images
Organization Images

Set your SharePoint libraries as Organization Assets

To define your SharePoint Libraries as Organization asset libraries, you need to have at least the SharePoint Admin role.

The operation can only be done using SharePoint Online Management Shell PowerShell commands. If you don’t have the PowerShell module, you can install it via PowerShell gallery, with the following PowerShell command:

Install-Module -Name Microsoft.Online.SharePoint.PowerShell 

Or using the -scope parameter if you are not local admin of your computer

Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser 

Now that we have the correct PowerShell module, we can connect to our SharePoint Online central admin. Execute the following command and log you in with your SharePoint Admin account. It requires the SharePoint Admin Center URL that looks like “https://<tenant_name>

Connect-SPOService https://<tenant_name> 

Then we will execute the Add-SPOOrgAssetsLibrary cmdlet. Here are the parameters :

  • LibraryUrl: Mandatory. The URL of your SharePoint Library to define as an Organization asset library
  • OrgAssetType: Can be either “ImageDocumentLibrary” (default), that defines your organization images asset libraries or “OfficeTemplateLibrary”, that defines your Office Template libraries.
  • ThumbnailUrl: Optional. The URL of the image used as a background image for your images library on the image picker in SharePoint webparts configuration.
  • CdnType: Can be either “Private” (default) or “Public”

We’ll first register our “Company Templates” library as our Office Template Library

Add-SPOOrgAssetsLibrary -LibraryUrl "https://<tenant_name>" -OrgAssetType OfficeTemplateLibrary

If it is the first time you add a SharePoint Online Organization Assets Library, PowerShell will warn you that you will enable the CDN capabilities at your SharePoint Online tenant level. You’ll have to agreed by entering “Y”. This confirmation is mandatory for each type of CDN: Private and Public.

Each time you will add a new SharePoint Organization Assets Library, Powershell will ask you to confirm that you are OK to publish the library as a CDN origin.

Let’s register 2 organization images libraries: “Office 365 Icons” and “Cover Images”

Add-SPOOrgAssetsLibrary -LibraryUrl "https://<tenant_name>" -OrgAssetType ImageDocumentLibrary -ThumbnailUrl "https://<tenant_name>"
Add-SPOOrgAssetsLibrary -LibraryUrl "https://<tenant_name>" -OrgAssetType ImageDocumentLibrary -ThumbnailUrl "https://<tenant_name>" 

We can now see our organization assets libraries by running the following command:


And we can see our CDN Origins per type of CDN (private or public) by running the following commands:

Get-SPOTenantCdnOrigins -CdnType Private
Get-SPOTenantCdnOrigins -CdnType Public 

It can take up to 15 minutes to have your libraries configured as CDN origins, and you’ll also have a delay of few hours to see your Office templates library show up in your Office Clients. 

Once it is configured, your can add or remove your images or office templates directly in the SharePoint document library and it will take effect immediately in your webpart configuration and Office clients.

Enabling CDN
Use SharePoint Libraries to distribute Office Templates and Company images
Tenant OrgAssetsLibraries
Images Org Asset libraries
Use SharePoint Libraries to distribute Office Templates and Company images
Office Template Org Asset Library

Remove organization assets libraries

You have to user PowerShell to remove your organization assets libraries.

First of all, you’ll need to be connected to the “SPOService” using the commands we have used earlier.

Then we’ll need to run the following command to remove the library:

Remove-SPOOrgAssetsLibrary -LibraryUrl "/Cover Images" 

Removing the organization asset library won’t remove the CDN Origin, so you might want to run the following command as well:

Remove-SPOTenantCdnOrigin -OriginUrl "COVER IMAGES" -CdnType private 

About the Author:

Hi ! I’m Théophile Chin-Nin, Microsoft 365 & Power Platform Architect and Microsoft Business Application MVP, from Nantes, France.
As a Microsoft 365 & Power Platform specialist, I guide all kind of organizations, from SMB’s to multinational companies, on their way to Microsoft 365 suite. I actually have two types of technical expertises:

  • The collaboration workloads, such as Teams, SharePoint, OneDrive, and everything related to the Office Groups
  • The low-code business apps solutions, Power Apps and Power Automate


Chin-Nin, T. (2020). Use SharePoint Libraries to distribute Office Templates and Company images. Available at: [Accessed: 11th January 2021].

Share this on...

Rate this Post: