Skip to main content

spo navigation node get

Gets information about a specific navigation node

Usage​

m365 spo navigation node get [options]

Options​

-u, --webUrl <webUrl>

Absolute URL of the site.

-l, --location <location>

Navigation type where the node is located. Available options: QuickLaunch, TopNavigationBar.

--id <id>

Id of the navigation node.

-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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Permissions​

ResourcePermissions
SharePointAllSites.Read

Examples​

Retrieve information for a specific navigation node from the quick launch.

m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marketing --location QuickLaunch --id 2209

Retrieve information for a specific navigation node from the top navigation.

m365 spo navigation node get --webUrl https://contoso.sharepoint.com/sites/Marketing --location TopNavigationBar --id 2209

Response​

{
"AudienceIds": [
"0d718612-8407-4d6b-833c-6891a553354f"
],
"CurrentLCID": 1033,
"CustomProperties": [],
"FriendlyUrlSegment": "",
"IsDeleted": false,
"IsHidden": false,
"IsTitleForExistingLanguage": false,
"Key": "2209",
"Nodes": [
{
"AudienceIds": [],
"CurrentLCID": 1033,
"CustomProperties": [],
"FriendlyUrlSegment": "",
"IsDeleted": false,
"IsHidden": false,
"IsTitleForExistingLanguage": false,
"Key": "2210",
"Nodes": [],
"NodeType": 0,
"OpenInNewWindow": true,
"SimpleUrl": "https://microsoft365.com",
"Title": "Microsoft 365",
"Translations": []
}
],
"NodeType": 0,
"OpenInNewWindow": null,
"SimpleUrl": "/sites/Marketing/Lists/Work Status/AllItems.aspx",
"Title": "Work Status",
"Translations": []
}