Report on externally shared files via the Graph API

An updated version of my “proof of concept” script to report on any and all externally shared files within the organization. This new version covers SharePoint Online sites as well and can also process individual sites via the -Sites parameter. The output has been reworked and now uses the ImportExcel module to generate a “pretty” Excel file with conditional formatting and clickable links. In addition, I’ve toyed with another version of the script that enumerates lists and list items, as opposed to the “classic” one that enumerates drives and processes them much like a traditional folder structure. Both versions should give you the same set of results, but can differ in performance and throttling aspect… …

Continue readingReport on externally shared files via the Graph API

Granular permissions for working with files, list items and lists added to the Graph API!

Microsoft has extended their permissions model for working with files, list items and lists within the Graph API. The newly introduced Files.SelectedOperations.Selected, ListItems.SelectedOperations.Selected and Lists.SelectedOperations.Selected scopes are available in both delegate and application permission flavors and allow you to granularly control application access! At the same time, they use the same model the Sites.Selected permissions used, so you can easily adopt them. …

Continue readingGranular permissions for working with files, list items and lists added to the Graph API!

How to use the Invoke-HoldRemovalAction cmdlet to remove legacy and orphaned holds in Microsoft 365

Microsoft recently introduced the Invoke-HoldRemovalAction cmdlet to help organizations with the removal of orphaned and legacy holds within Microsoft 365. In this article, we will take the cmdlet for a spin and test it against several scenarios… …

Continue readingHow to use the Invoke-HoldRemovalAction cmdlet to remove legacy and orphaned holds in Microsoft 365

Enumerate all SharePoint Online site collections via the Graph API

In another article of the “this is now finally possible in Office 365”, here’s how to get a list of all SharePoint Online site collections (or “sites”, as Microsoft is confusingly calling them  lately) via a simple Graph API query: OK, not so fast! There are some important details we …

Continue readingEnumerate all SharePoint Online site collections via the Graph API