Connect to SharePoint Online and MS Graph Interactively with Client App and MSAL token
3 Replies
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>” […]