spo propertybag list
Gets property bag values
Usage
m365 spo propertybag list [options]
Options
-u, --webUrl <webUrl>The URL of the site from which the property bag value should be retrieved.
--folder [folder]Site-relative URL of the folder from which to retrieve property bag value. Case-sensitive.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Return property bag values located in the given site
m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test
Return property bag values located in the given site root folder
m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder /
Return property bag values located in the given site document library
m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder '/Shared Documents'
Return property bag values located in folder in the given site document library
m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder '/Shared Documents/MyFolder'
Return property bag values located in the given site list
m365 spo propertybag list --webUrl https://contoso.sharepoint.com/sites/test --folder /Lists/MyList
Response
- JSON
- Text
- CSV
- Markdown
[
{
"key": "vti_approvallevels",
"value": "Approved Rejected Pending\\ Review"
}
]
key value
-------------------- -----------------------------------
vti_approvallevels Approved Rejected Pending\ Review
key,value
vti_approvallevels,Approved Rejected Pending\ Review
# spo propertybag list --webUrl "https://contoso.sharepoint.com/sites/test"
Date: 5/6/2023
Property | Value
---------|-------
key | vti_approvallevels
value | Approved Rejected Pending\ Review