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

How to reset "Connect-PnPOnline –Url https://xxx.sharepoint.com/ -UseWebLogin"? #1656

Open
Leetcore opened this issue Jul 19, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@Leetcore
Copy link

commented Jul 19, 2018

Reporting an Issue or Missing Feature

I want to connect with:

Connect-PnPOnline –Url https://xxx.sharepoint.com/ -UseWebLogin

But the user has not the needed rights. Is there any way to reset this and enter login credentials in the web form again?

Expected behavior

Maybe a -resetCredentials param that deletes auth cookies?

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

  • PnP PowerShell for SharePoint 2013
  • PnP PowerShell for SharePoint 2016
  • PnP PowerShell for SharePoint Online

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

SharePointPnPPowerShellOnline 2.28.1807.0

How did you install the PnP-PowerShell Cmdlets?

  • MSI Installed downloaded from GitHub
  • Installed through the PowerShell Gallery with Install-Module
  • Other means

@Leetcore Leetcore changed the title How to reset "Connect-PnPOnline –Url https://xxx.sharepoint.com/ -UseWebLogin"? label:"help wanted" How to reset "Connect-PnPOnline –Url https://xxx.sharepoint.com/ -UseWebLogin"? Jul 19, 2018

@migee

This comment has been minimized.

Copy link

commented Sep 11, 2018

For me I simply exit out of the powershell instance and reopen and run the last command. Seems to clear out the cached login.

@PedroMordeP

This comment has been minimized.

Copy link

commented Apr 9, 2019

I also have this issue when i have one credential and is saved using web login.
The -UseWebLogin should have also the -ClearTokenCache used with the -SPOManagementShell to clear and give the option to choose another account.

@Leetcore

This comment has been minimized.

Copy link
Author

commented Apr 9, 2019

I found out that it is using the Internet Explorer cache and cookies. If you clear them, the web login asks again for user.

@stevish-com

This comment has been minimized.

Copy link

commented Apr 30, 2019

Because my windows user is the same (on my work machine) as my normal login, it forces me to always log in with that. I also have an admin user, but I never get the option to log in with that. Tried logging out and clearing cache in Internet explorer and Edge, but it didn't work. Any other ideas to force a new login? I think with the Connect-SPOnline you can enter just a username so that when it asks for you to log in, it's as that user. Is there a way to do that in PnPOnline with -UseWebLogin on? Or a way to use the default browser instead of IE?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.