Add-SPOOrgAssetsLibrary

Designates a library to be used as a central location for organization assets across the tenant.

Syntax

Add-SPOOrgAssetsLibrary
   -LibraryUrl <String>
   [-ThumbnailUrl <String>]
   [-OrgAssetType <OrgAssetType>]
   [-CdnType <SPOTenantCdnType>]
   [<CommonParameters>]

Description

The Add-SPOOrgAssetsLibrary cmdlet designates a library to be a central location for organization assets across the tenant. Once this cmdlet is run, assets stored within this library are available to sites across the tenant. The name publicly displayed for the library will be the organization's name. Note that it may take from a couple of hours to a day for changes to be reflected.

Examples

Example 1

This example adds https://contoso.sharepoint.com/sites/branding/Assets as a designated library for organization assets. Assets is the name of the SharePoint library added. The thumbnail publicly displayed for the library is contosologo.jpg, from that same library.

Add-SPOOrgAssetsLibrary -LibraryURL https://contoso.sharepoint.com/sites/branding/Assets -ThumbnailURL https://contoso.sharepoint.com/sites/branding/Assets/contosologo.jpg

Example 2

This example adds https://contoso.sharepoint.com/sites/branding/Templates as a designated library for organization assets. Templates is the name of the SharePoint library added and will be the name publicly displayed for the library. The thumbnail publicly displayed for the library is contosologo.jpg, from that same library. OrgAssetType is the type of SharePoint library.

Add-SPOOrgAssetsLibrary -LibraryURL https://contoso.sharepoint.com/sites/branding/Templates -ThumbnailURL https://contoso.sharepoint.com/sites/branding/Templates/contosologo.jpg -OrgAssetType OfficeTemplateLibrary

Parameters

-CdnType

Specifies the CDN type. The valid values are public or private.

Note: The manually configured Private CDN is in the process of being deprecated. For more information, see Use the Office 365 Content Delivery Network (CDN) with SharePoint Online.

Type:SPOTenantCdnType
Accepted values:Public, Private
Position:Named
Default value:Private
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-LibraryUrl

Indicates the absolute URL of the library to be designated as a central location for organization assets.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-OrgAssetType

Indicates the type of content in this library. Currently supported values are "ImageDocumentLibrary" and "OfficeTemplateLibrary".

ImageDocumentLibrary is the default OrgAssetType and is best used for images. You can access the contents of this library from any site or page in the SharePoint filepicker. OfficeTemplateLibrary is the suggested type for Office files and will show up in the UI of all Office desktop apps and Office online in the templates section.

In order to benefit from both UIs you can choose "ImageDocumentLibrary,OfficeTemplateLibrary" as OrgAssetType.

Type:OrgAssetType
Accepted values:ImageDocumentLibrary, OfficeTemplateLibrary
Position:Named
Default value:ImageDocumentLibrary
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-ThumbnailUrl

Indicates the URL of the background image used when the library is publicly displayed. If no thumbnail URL is indicated, the card will have a gray background.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online