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 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
.--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 the specified site or site collection.
m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test
Return details about all user custom actions located in the specified site collection.
m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test --scope Site
Return details about all user custom actions located in the specified site.
m365 spo customaction list --webUrl https://contoso.sharepoint.com/sites/test --scope Web
Response
- JSON
- Text
- CSV
- Markdown
[
{
"ClientSideComponentId": "b41916e7-e69d-467f-b37f-ff8ecf8f99f2",
"ClientSideComponentProperties": "'{testMessage:Test message}'",
"CommandUIExtension": null,
"Description": null,
"Group": null,
"HostProperties": "",
"Id": "a70d8013-3b9f-4601-93a5-0e453ab9a1f3",
"ImageUrl": null,
"Location": "ClientSideExtension.ApplicationCustomizer",
"Name": "YourName",
"RegistrationId": null,
"RegistrationType": 0,
"Rights": {
"High": 0,
"Low": 0
},
"Scope": 3,
"ScriptBlock": null,
"ScriptSrc": null,
"Sequence": 0,
"Title": "YourAppCustomizer",
"Url": null,
"VersionOfUserCustomAction": "16.0.1.0"
}
]
Name Location Scope Id
--------------- ----------------------------------------- ----- ------------------------------------
YourName ClientSideExtension.ApplicationCustomizer Web a70d8013-3b9f-4601-93a5-0e453ab9a1f3
ClientSideComponentId,ClientSideComponentProperties,HostProperties,Id,Location,Name,RegistrationType,Scope,Sequence,Title,VersionOfUserCustomAction
b41916e7-e69d-467f-b37f-ff8ecf8f99f2,'{testMessage:Test message}',,a70d8013-3b9f-4601-93a5-0e453ab9a1f3,ClientSideExtension.ApplicationCustomizer,YourName,0,Web,0,YourAppCustomizer,16.0.1.0
# spo customaction list --webUrl "https://contoso.sharepoint.com/sites/sales"
Date: 10/2/2023
## YourAppCustomizer (a70d8013-3b9f-4601-93a5-0e453ab9a1f3)
Property | Value
---------|-------
ClientSideComponentId | b41916e7-e69d-467f-b37f-ff8ecf8f99f2
ClientSideComponentProperties | '{testMessage:Test message}'
HostProperties |
Id | a70d8013-3b9f-4601-93a5-0e453ab9a1f3
Location | ClientSideExtension.ApplicationCustomizer
Name | YourName
RegistrationType | 0
Scope | Web
Sequence | 0
Title | YourAppCustomizer
VersionOfUserCustomAction | 16.0.1.0
More information
- UserCustomAction REST API resources: https://msdn.microsoft.com/en-us/library/office/dn531432.aspx#bk_UserCustomAction