• Home
  • /
  • 2023
  • /
  • Organization Assets Library for Images

Organization Assets Library for Images

If your organization needs to store and manage images for all your users to use, you can specify one or more document libraries on a SharePoint site as an “Organization Asset Library”. You can specify up to 30 Organization Asset Libraries for a single organization. All of these libraries must be on the same site. Only libraries (not folders) can be set as an Organization Asset Library.

When an editor creates a new post and adds a web part to any modern page in SharePoint and that web part opens the file picker, the editor can choose between the following options:
* Recent
* Stock images
* Web search
* OneDrive
* Site
* Upload
* From a link

With an Organization Asset Library for Images they also get the option ‘Your organization’ with a specific document library where the approved images are. If they clink on the document library, they’ll see the approved images.

PowerShell configuration

First create a SharePoint Online site where all approved images will be in a document library. Than authenticate yourself as a SharePoint Administrator. The Organization Assets Library for Images is configured with this PowerShell cmdlet’s

# Source: https://learn.microsoft.com/en-us/sharepoint/organization-assets-library

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

# -CdnType
# If you don't specify the CdnType, it will enable a private CDN by default.

# Add-SPOOrgAssetsLibrary : There must be read permissions for the document library for 'Everybody accept external users'

# Connect to SharePoint Online
Connect-SPOService -Url 'https://rdw-admin.sharepoint.com'

# Set Params
$LibraryURL = 'https://rdw.sharepoint.com/sites/Beeldbank/Beeldbank%20Afbeeldingen'
$ThumbnailURL = 'https://rdw.sharepoint.com/sites/Beeldbank/Beeldbank%20Afbeeldingen/beeldbankLH.jpg'

# Create an organization assets library
Add-SPOOrgAssetsLibrary `
    -LibraryURL $LibraryURL `
    -ThumbnailURL $ThumbnailURL `
    -OrgAssetType ImageDocumentLibrary

# See information about all organization asset libraries on the site:
Get-SPOOrgAssetsLibrary

# Update thumbnail URL:
Set-SPOOrgAssetsLibrary `
    -LibraryUrl $LibraryURL `
    -ThumbnailUrl $ThumbnailURL

# Remove a library:
Remove-SPOOrgAssetsLibrary `
    -LibraryUrl $LibraryURL

ToDo next

The next thing I’m planning to do, is to disable the other options. I know its possible with PowerShell, but when I realized it, I will post about it.

0
0

Leave a Reply