Oct 06 2017 05:42 AM
When I try to use Connect-PnPOnline, I get the following error. Why is it telling me that I need to browse to the website first?
The tenant uses ADFS, but when i add the -UseADFS attribute, i get an error stating Connect-PnPOnline : Endpoint does not use ADFS for authentication.
Connect-PnPOnline : Cannot contact web site 'https://tenant.sharepoint.com/' or the web site does not support SharePoint Online credentials.
The response status code is 'Unauthorized'. The response headers are 'X-SharePointHealthScore=0, X-MSDAVEXT_Error=917656;
Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+select+the+option+to+login+automatically.,
SPRequestGuid=bc3d209e-80af-4000-920e-afece9bfd74d, request-id=bc3d209e-80af-4000-920e-afece9bfd74d, MS-CV=niA9vK+AAECSDq/s6b/XTQ.0,
Strict-Transport-Security=max-age=31536000, X-FRAME-OPTIONS=SAMEORIGIN, SPRequestDuration=46, SPIisLatency=1,
MicrosoftSharePointTeamServices=16.0.0.6927, X-Content-Type-Options=nosniff, X-MS-InvokeApp=1; RequireReadOnly, X-MSEdge-Ref=Ref A:
2ACE5D45C45544EF8E9E6ABD8F06C67A Ref B: BLUEDGE0809 Ref C: 2017-10-06T12:35:27Z, Content-Length=0, Content-Type=text/plain; charset=utf-8,
Date=Fri, 06 Oct 2017 12:35:27 GMT, P3P=CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE
PUR UNI", X-Powered-By=ASP.NET'.
At line:1 char:1
+ Connect-PnPOnline
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-PnPOnline], NotSupportedException
+ FullyQualifiedErrorId : System.NotSupportedException,SharePointPnP.PowerShell.Commands.Base.ConnectOnline
@Erwin van Hunen
Oct 20 2017 09:00 AM
Oct 22 2017 10:49 PM
I had the issue of not login in a few months ago but had to do with MFA
Oct 23 2017 06:07 AM
Oct 23 2017 09:59 AM
Thanks for your suggestions. It fixed itself over the weekend :)
Feb 06 2018 03:33 AM - edited Feb 06 2018 03:34 AM
How did you solve the MFA situation Paul?