rubrikinc / polaris-o365-powershell

PowerShell commands for managing Polaris M365 protection
MIT License
7 stars 13 forks source link

Use the right query to list SharePoint sites and document libraries #17

Closed zhedahht closed 3 years ago

zhedahht commented 3 years ago

Description

The query in my previous change (https://github.com/rubrikinc/polaris-o365-powershell/pull/16) can only list direct site children of a subscription, but can't list sites and document libraries recursively.

It uses the right query to list all sites and/or document libraries of a subscription, including the embedded ones.

Related Issue

The query in my previous change (https://github.com/rubrikinc/polaris-o365-powershell/pull/16) can only list direct site children of a subscription, but can't list sites and document libraries recursively.

Motivation and Context

How Has This Been Tested?

Manual tests

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!