Category Archives: SharePoint

Update SharePoint Site Title: GUI vs PowerShell

If you need to update a SharePoint site title (site name) programmatically (e.g. with PowerShell), and if this site is a group-based site (e.g. Microsoft Teams team site or Viva Engage community site or…) – you should not update SharePoint site title, but you should update group display name instead. Here is why. In Microsoft […]

Calling Microsoft Graph API from Python

Below is how I authenticate and call Microsoft Graph API to work with SharePoint from Python application. Plain no MSAL or Azure libraries used: secrets is a Python file where I assign client secret to variable clientSc (so my secret is not shared on github). This is ok for demo purposes but generally, you should […]

Using Microsoft.Graph PowerShell to Search in Microsoft 365

There is a Microsoft.Graph PowerShell module provided by Microsoft which simplifies usage of Microsoft Graph API. Below is how to authenticate to MS Graph and how to search within SharePoint and Teams Microsoft 365 content using Microsoft.Graph PowerShell module. Authentication Interactive authentication code sample: For daemon app authentication we need a certificate configured in Azure […]

Providing ACS permissions for app to access SharePoint

Microsoft retires ACS Let me quote Microsoft just to start (Dec 18, 2023): So, for new development it is strictly recommended to use Azure Registered Apps to access Microsoft 365 resources programmatically. You still need ACS in some cases But, as always, it all is not so simple, as Hopefully, Microsoft will resolve all the […]

Using SharePoint REST API from Python code

Using Microsoft Graph API is a preferred and recommended way to connect to SharePoint Online and other Microsoft 365 resources programmatically from Python code. But if by some reason you are required to use classic SharePoint REST API, here is how it is done. Prerequisites: Using client Id and client secret to access SharePoint REST […]