Access denied error when creating Asset library Add-SPOOrgAssetsLibrary

%3CLINGO-SUB%20id%3D%22lingo-sub-2202544%22%20slang%3D%22en-US%22%3EAccess%20denied%20error%20when%20creating%20Asset%20library%20Add-SPOOrgAssetsLibrary%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202544%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20Global%20Admin%20and%20my%20role%20as%20SharePoint%20admin%20get%20this%20error%20below%20when%20trying%20create%20Org%20Asset%20Library.%20The%20documentation%20says%20both%20roles%20should%20be%20able%20to%20create%20this%20library.%20I'm%20not%20if%20there%20is%20some%20kind%20of%20policy%20or%20security%20feature%20we%20have%20enable%20that%20might%20be%20blocking%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ERunning%20below%20script%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EAdd-SPOOrgAssetsLibrary%20-LibraryUrl%20https%3A%2F%2FmySP.sharepoint.com%2Fsites%2FMarketing%2FAssets%20-ThumbnailUrl%20https%3A%2F%2FmySP.sharepoint.com%2Fsites%2FMarketing%2FAssets%2Flogo.png%20-OrgAssetType%20ImageDocumentLibrary%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EError%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EAdd-SPOOrgAssetsLibrary%20%3A%20Access%20denied.%20You%20do%20not%20have%20permission%20to%20perform%20this%20action%20or%20access%20this%20resource.%0AAt%20line%3A1%20char%3A1%0A%2B%20Add-SPOOrgAssetsLibrary%0A%2B%20~~~~~~~~~~~~~~~~~~~~~~~%0A%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(%3A)%20%5BAdd-SPOOrgAssetsLibrary%5D%2C%20ServerUnauthorizedAccessException%0A%2B%20FullyQualifiedErrorId%20%3A%20Microsoft.SharePoint.Client.ServerUnauthorizedAccessException%2CMicrosoft.Online.SharePoi%0Ant.PowerShell.AddSPOOrgAssetsLibrary%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2202544%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

My Global Admin and my role as SharePoint admin get this error below when trying create Org Asset Library. The documentation says both roles should be able to create this library. I'm not if there is some kind of policy or security feature we have enable that might be blocking this?

 

Running below script:

 

Add-SPOOrgAssetsLibrary -LibraryUrl https://mySP.sharepoint.com/sites/Marketing/Assets -ThumbnailUrl https://mySP.sharepoint.com/sites/Marketing/Assets/logo.png -OrgAssetType ImageDocumentLibrary

 

 

Error:

 

Add-SPOOrgAssetsLibrary : Access denied. You do not have permission to perform this action or access this resource.
At line:1 char:1
+ Add-SPOOrgAssetsLibrary
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-SPOOrgAssetsLibrary], ServerUnauthorizedAccessException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerUnauthorizedAccessException,Microsoft.Online.SharePoi
nt.PowerShell.AddSPOOrgAssetsLibrary

 

  

0 Replies