spo customaction get¶
Gets information about a user custom action for site or site collection
Usage¶
m365 spo customaction get [options]
Options¶
-i, --id <id>
- ID of the user custom action to retrieve information for
-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
. DefaultAll
-h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text
. Defaulttext
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Return details about the user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site or site collection https://contoso.sharepoint.com/sites/test
m365 spo customaction get -i 058140e3-0e37-44fc-a1d3-79c487d371a3 -u https://contoso.sharepoint.com/sites/test
Return details about the user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site or site collection https://contoso.sharepoint.com/sites/test
m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test
Return details about the user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site collection https://contoso.sharepoint.com/sites/test
m365 spo customaction get -i 058140e3-0e37-44fc-a1d3-79c487d371a3 -u https://contoso.sharepoint.com/sites/test -s Site
Return details about the user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site https://contoso.sharepoint.com/sites/test
m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url 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