Skip to main content

spo site get

Gets information about the specific site collection

Usage

m365 spo site get [options]

Options

-u, --url <url>

URL of the site collection to retrieve information for

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

Remarks

This command can retrieve information for both classic and modern sites.

Examples

Return information about the https://contoso.sharepoint.com/sites/project-x site collection.

m365 spo site get -u https://contoso.sharepoint.com/sites/project-x

Response

{
"AllowCreateDeclarativeWorkflow": true,
"AllowDesigner": true,
"AllowMasterPageEditing": false,
"AllowRevertFromTemplate": false,
"AllowSaveDeclarativeWorkflowAsTemplate": true,
"AllowSavePublishDeclarativeWorkflow": true,
"AllowSelfServiceUpgrade": true,
"AllowSelfServiceUpgradeEvaluation": true,
"AuditLogTrimmingRetention": 90,
"ChannelGroupId": "00000000-0000-0000-0000-000000000000",
"Classification": "",
"CompatibilityLevel": 15,
"CurrentChangeToken": {
"StringValue": "1;1;a6dd24a9-6fb1-45af-9e7e-5f8a2dbdf787;638229493994700000;1164779077"
},
"DisableAppViews": false,
"DisableCompanyWideSharingLinks": false,
"DisableFlows": false,
"ExternalSharingTipsEnabled": false,
"GeoLocation": "EUR",
"GroupId": "00000000-0000-0000-0000-000000000000",
"HubSiteId": "00000000-0000-0000-0000-000000000000",
"Id": "a6dd24a9-6fb1-45af-9e7e-5f8a2dbdf787",
"SensitivityLabelId": "",
"SensitivityLabel": "00000000-0000-0000-0000-000000000000",
"IsHubSite": false,
"LockIssue": null,
"MaxItemsPerThrottledOperation": 5000,
"MediaTranscriptionDisabled": false,
"NeedsB2BUpgrade": false,
"ResourcePath": {
"DecodedUrl": "https://contoso.sharepoint.com/sites/team1"
},
"PrimaryUri": "https://contoso.sharepoint.com/sites/team1",
"ReadOnly": false,
"RequiredDesignerVersion": "15.0.0.0",
"SandboxedCodeActivationCapability": 2,
"ServerRelativeUrl": "/sites/team1",
"ShareByEmailEnabled": false,
"ShareByLinkEnabled": false,
"ShowUrlStructure": false,
"TrimAuditLog": true,
"UIVersionConfigurationEnabled": false,
"UpgradeReminderDate": "1899-12-30T00:00:00",
"UpgradeScheduled": false,
"UpgradeScheduledDate": "1753-01-01T00:00:00",
"Upgrading": false,
"Url": "https://contoso.sharepoint.com/sites/team1",
"WriteLocked": false
}
CTRL + M