Skip to content

spo orgassetslibrary list

List all libraries that are assigned as asset library


m365 spo orgassetslibrary list [options]


-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
Runs command with verbose logging
Runs command with debug logging


To use this command you have to have permissions to access the tenant admin site.


List all libraries that are assigned as asset library

m365 spo orgassetslibrary list


Standard response

  "Url": "/",
  "Libraries": [
      "DisplayName": "Site Assets",
      "LibraryUrl": "SiteAssets",
      "ListId": "/Guid(0a327c3f-ba82-4b19-bfa1-628405539420)/",
      "ThumbnailUrl": null
Libraries: [{"DisplayName":"Site Assets","LibraryUrl":"SiteAssets","ListId":"/Guid(0a327c3f-ba82-4b19-bfa1-628405539420)/","ThumbnailUrl":null}]
Url      : /
/,"[{""DisplayName"":""Site Assets"",""LibraryUrl"":""SiteAssets"",""ListId"":""/Guid(0a327c3f-ba82-4b19-bfa1-628405539420)/"",""ThumbnailUrl"":null}]"

Response when no library is assigned as asset library

No libraries in Organization Assets