Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] User Realm discovery failed error on Connect-PnPOnline command in SharePoint 2016 On-Premises #263

Open
uttambobalade opened this issue Mar 8, 2021 · 3 comments

Comments

@uttambobalade
Copy link

We’ve downloaded the SharePoint Responsive solution from the path - https://github.com/OfficeDev/PnP-Tools/archive/master.zip and ran the PowerShell “Enable-SPResponsiveUI.ps1” on SharePoint 2016 On-Premises server.
We have downloaded the SharePointPnPPowerShell2016 version on the server and ran the PowerShell but we’re getting “User Realm discovery failed error” on the Connect-PnPOnline command.

Please guide us/suggest any recommendations or solutions.

SharePoint Version – SharePoint 2016 On-Premises
OS - Windows

Refer to the previous thread opened in another repo - pnp/powershell#393.

Thank you.

@uttambobalade
Copy link
Author

Hi,
Do we need to install a specific version of PnPPowershell to overcome this issue? If need more details about the error then see the attached screenshot

image

@Laul0
Copy link
Contributor

Laul0 commented Mar 11, 2021

Hi @uttambobalade,

Here the first questions that can help you:

  • Do you have a proxy? This kind of error is common when an app is trying to connect through a Proxy but this one is not configured
  • The script to deploy the Responsive solution use -Credentials parameter to authenticate the user account. You maybe should use another method. Try Connect-PnPonline with another method (UseWebLogin, SPOManagementShell, etc.). If one of them works, edit the script to use the good method

Hoping this will help you

@uttambobalade
Copy link
Author

Hi @Laul0 ,

Thank you for your response but the alternate options were also not worked to authenticate the user account. We do not have Proxy on servers. Please find below the alternate options that we tried with no luck -

  1. Connect-PnPOnline -Url
  2. Connect-PnPOnline -Url -Credentials (Get-Credential)
  3. Connect-PnPOnline -Url -UseWebLogin
  4. Connect-PnPOnline -Url -SPOManagementShell
  5. Connect-PnPOnline -Url -TransformationOnPrem -CurrentCredential

We got the same error message in all of the above commands.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants