Skip to main content

onedrive list

Retrieves a list of OneDrive sites

Usage

m365 onedrive list [options]

Options

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

Examples

Retrieves a list of OneDrive sites from the tenant.

m365 onedrive list

Response

[
{
"_ObjectType_": "Microsoft.Online.SharePoint.TenantAdministration.SiteProperties",
"_ObjectIdentity_": "5555b5a0-d016-6000-aee2-595e1fa42910|908bed80-a04a-4433-b4a0-883d9847d110:1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4\\\nSiteProperties\\\nhttps%3a%2f%2fcontoso-my.sharepoint.com%2fpersonal%2fjohn_contoso_onmicrosoft_com",
"AllowDownloadingNonWebViewableFiles": false,
"AllowEditing": false,
"AllowSelfServiceUpgrade": true,
"AnonymousLinkExpirationInDays": 0,
"AuthContextStrength": null,
"AuthenticationContextLimitedAccess": false,
"AuthenticationContextName": null,
"AverageResourceUsage": 0,
"BlockDownloadLinksFileType": 0,
"BlockDownloadMicrosoft365GroupIds": null,
"BlockDownloadPolicy": false,
"BlockGuestsAsSiteAdmin": 0,
"ClearRestrictedAccessControl": false,
"CommentsOnSitePagesDisabled": false,
"CompatibilityLevel": 15,
"ConditionalAccessPolicy": 0,
"CurrentResourceUsage": 0,
"DefaultLinkPermission": 0,
"DefaultLinkToExistingAccess": false,
"DefaultLinkToExistingAccessReset": false,
"DefaultShareLinkRole": 0,
"DefaultShareLinkScope": 0,
"DefaultSharingLinkType": 0,
"DenyAddAndCustomizePages": 2,
"Description": null,
"DisableAppViews": 0,
"DisableCompanyWideSharingLinks": 0,
"DisableFlows": 0,
"ExcludeBlockDownloadPolicySiteOwners": false,
"ExcludedBlockDownloadGroupIds": [],
"ExternalUserExpirationInDays": 0,
"GroupId": "/Guid(00000000-0000-0000-0000-000000000000)/",
"GroupOwnerLoginName": null,
"HasHolds": false,
"HubSiteId": "/Guid(00000000-0000-0000-0000-000000000000)/",
"IBMode": null,
"IBSegments": [],
"IBSegmentsToAdd": null,
"IBSegmentsToRemove": null,
"IsGroupOwnerSiteAdmin": false,
"IsHubSite": false,
"IsTeamsChannelConnected": false,
"IsTeamsConnected": false,
"LastContentModifiedDate": "/Date(2023,4,22,10,47,36,867)/",
"Lcid": 1033,
"LimitedAccessFileType": 0,
"ListsShowHeaderAndNavigation": false,
"LockIssue": null,
"LockState": "Unlock",
"LoopDefaultSharingLinkRole": 0,
"LoopDefaultSharingLinkScope": 0,
"LoopOverrideSharingCapability": false,
"LoopSharingCapability": 0,
"MediaTranscription": 0,
"OverrideBlockUserInfoVisibility": 0,
"OverrideSharingCapability": false,
"OverrideTenantAnonymousLinkExpirationPolicy": false,
"OverrideTenantExternalUserExpirationPolicy": false,
"Owner": "john@contoso.onmicrosoft.com",
"OwnerEmail": null,
"OwnerLoginName": null,
"OwnerName": null,
"PWAEnabled": 1,
"ReadOnlyAccessPolicy": false,
"ReadOnlyForBlockDownloadPolicy": false,
"ReadOnlyForUnmanagedDevices": false,
"RelatedGroupId": "/Guid(00000000-0000-0000-0000-000000000000)/",
"RequestFilesLinkEnabled": false,
"RequestFilesLinkExpirationInDays": 0,
"RestrictedAccessControl": false,
"RestrictedAccessControlGroups": null,
"RestrictedAccessControlGroupsToAdd": null,
"RestrictedAccessControlGroupsToRemove": null,
"RestrictedToRegion": 3,
"SandboxedCodeActivationCapability": 0,
"SensitivityLabel": "/Guid(00000000-0000-0000-0000-000000000000)/",
"SensitivityLabel2": null,
"SetOwnerWithoutUpdatingSecondaryAdmin": false,
"SharingAllowedDomainList": null,
"SharingBlockedDomainList": null,
"SharingCapability": 0,
"SharingDomainRestrictionMode": 0,
"SharingLockDownCanBeCleared": false,
"SharingLockDownEnabled": false,
"ShowPeoplePickerSuggestionsForGuestUsers": false,
"SiteDefinedSharingCapability": 2,
"SocialBarOnSitePagesDisabled": false,
"Status": "Active",
"StorageMaximumLevel": 1048576,
"StorageQuotaType": null,
"StorageUsage": 99,
"StorageWarningLevel": 943718,
"TeamsChannelType": 0,
"Template": "SPSPERS#10",
"TimeZoneId": 13,
"Title": "John",
"TitleTranslations": null,
"Url": "https://contoso-my.sharepoint.com/personal/john_contoso_onmicrosoft_com",
"UserCodeMaximumLevel": 300,
"UserCodeWarningLevel": 200,
"WebsCount": 0
}
]
CTRL + M