Skip to content

spo customaction list

Lists user custom actions for site or site collection

Usage

spo customaction list [options]

Options

Option Description
--help output usage information
-u, --url <url> 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. Default All
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online site, using the spo login command.

Remarks

To retrieve list of custom actions, you have to first log in to a SharePoint Online site using the spo login command, eg. spo login https://contoso.sharepoint.com.

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

spo customaction list -u https://contoso.sharepoint.com/sites/test

Return details about all user custom actions located in site or site collection https://contoso.sharepoint.com/sites/test

spo customaction list --url https://contoso.sharepoint.com/sites/test

Return details about all user custom actions located in site collection https://contoso.sharepoint.com/sites/test

spo customaction list -u https://contoso.sharepoint.com/sites/test -s Site

Return details about all user custom actions located in site https://contoso.sharepoint.com/sites/test

spo customaction list --url https://contoso.sharepoint.com/sites/test --scope Web

More information