refactor: Simplify Connect-SharePoint by removing unnecessary parameters
This commit is contained in:
parent
5b8bf83019
commit
4759e7754e
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user