From 4759e7754e5d196118ba6faf022aab0ad27f8ce5 Mon Sep 17 00:00:00 2001 From: "Bobby Abellana (aider)" Date: Wed, 19 Feb 2025 15:11:41 -0800 Subject: [PATCH] refactor: Simplify Connect-SharePoint by removing unnecessary parameters --- SharePointFunctions.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 }