Category Archives: MS Graph

How to download ‘ALL’ files from a very large document library?

Summary My customer had a large document library on SharePoint Online with a deep folder structure. The total number of items is 2.7 million (2,743,321). They want those documents downloaded to the local folder. I know, this is an actual … Continue reading

Posted in MS Graph, PnP.PowerShell, SharePoint, SharePoint 2013, Technical Stuff | Leave a comment

How to use AAD Access Token in Connect-MgGraph?

Summary The Microsoft Graph PowerShell SDK is a great and simpler ways to get MS Graph API PowerShell code working quickly. But what I have found the source code and example to utilize the X509 certificate ways of authentication. For … Continue reading

Posted in MS Graph, Technical Stuff | Leave a comment

How to get all sites from the tenant using MS Graph API?

Summary The PnP PowerShell command Get-PnPTenantSite to get all sites from the tenant takes longer time. Additionally, it does not have asynchronous ways to get the information in the Azure Durable Function. This article uses the MS Graph API List … Continue reading

Posted in MS Graph, SharePoint | Leave a comment

How to find {sitesId} to pass to MS Graph API call?

Summary SharePoint related MS Graph API call requires {sitesid}, for example for the following API call we need {sitesId} Create permission – Microsoft Graph v1.0 | Microsoft Docs POST /sites/{sitesId}/permissions Solution Login to your SharePoint site. Go to Graph Explorer, … Continue reading

Posted in MS Graph, SharePoint | 3 Comments

How to setup certificate in MAG Azure Function App for PnP.PowerShell?

Summary The PnP.PowerShell supports PowerShell Core. There are few things you must do to make the PowerShell Code to work in Azure Function App. In this article, I will go through the steps by step all pre requisites. Step by … Continue reading

Posted in MS Graph, PnP.PowerShell | 3 Comments

How to get new team creation in MS Teams using MS Graph Notification API?

Summary A colleague asked me how to get a notification when anyone creates a Team on MS Teams? The answer is pretty simple you would use the MS Graph Notification API. There is an MS Learn session here. What I … Continue reading

Posted in MS Graph | Leave a comment