diff --git a/SharePointFunctions.ps1 b/SharePointFunctions.ps1 index 739d929..01930cf 100644 --- a/SharePointFunctions.ps1 +++ b/SharePointFunctions.ps1 @@ -39,11 +39,9 @@ function Connect-SharePoint { throw "Please enter a Site URL" } - # Remove client secret auth and use interactive auth instead + # Simplified interactive auth Connect-PnPOnline -Url $siteUrl -Interactive ` - -WarningAction SilentlyContinue ` - -Tenant "sutterhill" ` - -Scopes @("AllSites.FullControl") + -WarningAction SilentlyContinue return $true }