spo customaction list
Lists user custom actions for site or site collection
Usage
m365 spo customaction list [options]
Options
-u, --webUrl <webUrl>
Url of the site or site collection to retrieve the custom action from
-s, --scope [scope]
Scope of the custom action. Allowed values
Site
,Web
,All
. DefaultAll
-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 isfull
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
When using the text output type (default), the command lists only the values of the Name
, Location
, Scope
and Id
properties of the custom action. When setting the output type to JSON, all available properties are included in the command output.
Examples
Return details about all user custom actions located in site or site collection https://contoso.sharepoint.com/sites/test
m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test
Return details about all user custom actions located in site collection https://contoso.sharepoint.com/sites/test
m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test --scope Site
Return details about all user custom actions located in site https://contoso.sharepoint.com/sites/test
m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test --scope Web
More information
- UserCustomAction REST API resources: https://msdn.microsoft.com/en-us/library/office/dn531432.aspx#bk_UserCustomAction