OnePlaceSolutions / OnePlaceLiveSitePnP

Provisions a SharePoint Site with all the lists and settings for use with OnePlaceLive
MIT License
3 stars 1 forks source link

401 Unauthorized at Site Creation step #23

Closed ashleygagregory closed 4 years ago

ashleygagregory commented 4 years ago

Script appears to hit a 401 when creating the Site Collection (v3 SPO), is already logged on in SharePoint Online Management Shell and tested logging in to the Admin Site through PnP.

ashleygagregory commented 4 years ago

Changed default auth mode to just use the SharePoint PnP Cmdlets to work around this while investigating. SharePoint Online Management Shell will not be required for now.

ashleygagregory commented 4 years ago

Revised this slightly. SharePoint Online Management Shell is required, but we aren't explicitly calling it anymore, PnP calls it implicitly when we try to use it's Auth and that seems to work around this.

ashleygagregory commented 4 years ago

This Issue posted for PnP is relevant here and why this broke originally: https://github.com/pnp/PnP-PowerShell/issues/2538