pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
416 stars 643 forks source link

Get-PnPWebhookSubscriptions get's access denied with Connect-PnpOnline -UseWebLogin #2553

Open pmatthews05 opened 4 years ago

pmatthews05 commented 4 years ago

Category

[X] Bug [ ] Enhancement

Environment

[X] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

Expected or Desired Behavior

To return WebHooks on a list when calling Get-PNPWebHookSubscriptions

Observed Behavior

When signing into SharePoint using MFA eg. Connect-PnPOnline -useweblogin any calls to Get-PnpWebHookSubscriptions are returned with an access denied.

If you sign in using a non-MFA account e.g. Connect-PnPOnline calls to Get-PnPWebHookSubscription returns the results.

Steps to Reproduce

Get-PnPWebHookSubscription issue

ghost commented 4 years ago

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

joelfmrodrigues commented 4 years ago

Hi, hope this extra info helps.

I have just experienced this same issue, but in my case I am getting different results depending on a site being connected to a group or not. Same account used for two different sites and connecting using -useWebLogin

Tried to connect to the site without -useWebLogin but had the same result