Skip to content

spo orgassetslibrary list

List all libraries that are assigned as asset library

Usage

m365 spo orgassetslibrary list [options]

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 http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Important

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

Examples

List all libraries that are assigned as asset library

m365 spo orgassetslibrary list

Response

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      : /
Url,Libraries
/,"[{""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