pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
988 stars 662 forks source link

Measure-PnPResponseTime results in 403 Forbidden in SharePoint Online #2565

Open mirontoli opened 4 years ago

mirontoli commented 4 years ago

Issue

Whenever I log in with -SPOManagementShell (due MFA) and execute Measure-PnPResponseTime against a SharePoint Online Site, it results 403 Forbbiden.

To summarize what works and what does not:

✔️ SharePoint 2013 Site ✔️ SharePoint Online without Multi Factor Authentication ❌ SharePoint Online with MFA (Connect-PnPOnline -SPOManagementShell)

Expected behavior

See the measurement results

Actual behavior

WARNING: Reply from https://<tenantname>.sharepoint.com/SitePages/Home.aspx: 403

Steps to reproduce behavior

Connect-PnPOnline https://<tenantname>.sharepoint.com -SPOManagementShell
Measure-PnPResponseTime

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.18.2002.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.