Search Results for

    Show / Hide Table of Contents

    Add-PnPOrgAssetsLibrary

    SYNOPSIS

    Required Permissions

    • SharePoint: Access to the SharePoint Tenant Administration site

    Adds a given document library as a organizational asset source

    SYNTAX

    Add-PnPOrgAssetsLibrary -LibraryUrl <String> [-ThumbnailUrl <String>] [-CdnType <SPOTenantCdnType>] [-OrgAssetType <OrgAssetType>]
     [-Connection <PnPConnection>] 
    

    DESCRIPTION

    Adds a given document library as an organizational asset source in your SharePoint Online Tenant. You can specify multiple libraries, but all organizational asset sources you add must reside in the same site collection.

    Document libraries specified as organizational asset must be enabled as an Office 365 CDN source, either as private or public.

    The libraries must also have read rights for 'Everyone except external users' enabled on them. Either on library or on the entire site level.

    Only entire libraries can be configured as an organizational asset, folders cannot.

    It may take some time before this change will be reflected in the web interface.

    EXAMPLES

    EXAMPLE 1

    Add-PnPOrgAssetsLibrary -LibraryUrl "https://yourtenant.sharepoint.com/sites/branding/logos"
    

    Adds the document library with the url "logos" located in the sitecollection at "https://yourtenant.sharepoint.com/sites/branding" as an organizational asset not specifying a thumbnail image for it and enabling the document library as a public Office 365 CDN source

    EXAMPLE 2

    Add-PnPOrgAssetsLibrary -LibraryUrl "https://yourtenant.sharepoint.com/sites/branding/logos" -ThumbnailUrl "https://yourtenant.sharepoint.com/sites/branding/logos/thumbnail.jpg"
    

    Adds the document library with the url "logos" located in the sitecollection at "https://yourtenant.sharepoint.com/sites/branding" as an organizational asset specifying the thumbnail image "thumbnail.jpg" residing in the same document library for it and enabling the document library as a public Office 365 CDN source

    EXAMPLE 3

    Add-PnPOrgAssetsLibrary -LibraryUrl "https://yourtenant.sharepoint.com/sites/branding/logos" -CdnType Private
    

    Adds the document library with the url "logos" located in the sitecollection at "https://yourtenant.sharepoint.com/sites/branding" as an organizational asset not specifying a thumbnail image for it and enabling the document library as a private Office 365 CDN source

    PARAMETERS

    -CdnType

    Indicates what type of Office 365 CDN source the document library will be added to

    Type: SPOTenantCdnType
    Parameter Sets: (All)
    Accepted values: Public, Private
    
    Required: False
    Position: Named
    Default value: Public
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Connection

    Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

    Type: PnPConnection
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -LibraryUrl

    The full url of the document library to be marked as one of organization's assets sources

    Type: String
    Parameter Sets: (All)
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -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.

    Type: OrgAssetType
    Parameter Sets: (All)
    Accepted values: ImageDocumentLibrary, OfficeTemplateLibrary
    
    Required: False
    Position: Named
    Default value: ImageDocumentLibrary
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -ThumbnailUrl

    The full url to an image that should be used as a thumbnail for showing this source. The image must reside in the same site as the document library you specify.

    Type: String
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer