Tag Archives: MSAL

Connect to SharePoint Online and MS Graph Interactively with Client App and MSAL token

Scenario You have a Microsoft 365 subscription with SharePoint Online. You use PowerShell, PnP.PowerShell module and MS Graph API to work with SharePoint under current user’s credential. You need to authenticate to SharePoint Online via Connect-PnPOnline and to Microsoft Graph API interactively on behalf of a current user. Problem Unfortunately, both “Connect-PnPOnline -Interactive -Url <siteUrl>” […]

Authenticate to Microsoft Graph from PowerShell Interactively

Scenario You are a developer or power user in a company with Microsoft 365 tenant.You need to connect to Microsoft Graph and then call Microsoft Graph API to consume some MS Graph resources on behalf of authenticated user programmatically with PowerShell – e.g. add/remove documents or list items, search for sites or documents content etc. […]