User credentials login page hanged #2428
Replies: 7 comments
-
@EmadKhella which PnP PowerShell version are you using exactly? Is it a nightly release? I have made some changes after 1.10 that may be causing this. Can you confirm if you're on 1.10 or a later version please? |
Beta Was this translation helpful? Give feedback.
-
@KoenZomers |
Beta Was this translation helpful? Give feedback.
-
In that case it cannot be due to the code changes. This is a hard one to troubleshoot as I cannot reproduce it myself. Would it be an option for you to switch to a ClientId with certificate instead to mitigate the issue? |
Beta Was this translation helpful? Give feedback.
-
@KoenZomers |
Beta Was this translation helpful? Give feedback.
-
@EmadKhella - Have you tried Koen's suggestion? |
Beta Was this translation helpful? Give feedback.
-
@veronicageek It is not applicable in production environment to use ClientID with certificate so I was using WebLogin |
Beta Was this translation helpful? Give feedback.
-
Hi looks like the number of sites is the problem. We wont be fixing this issue as Weblogin is now considered legacy and deprecated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What I want to do
I want to loop through all communication sites in my environment to get some details about root web.
I use Connect-pnpOnline to loop on all selected sites using -UsewebLogin
it is working as expected for sometimes and show the login page and close it because it is using my current saved login details but after that the login page is hanging for long time with no errors
PNP powershell version
I am running the latest version of powershell PNP
Script:
this is the script I am using


connect-PnPOnline -url $SiteURL -UseWebLogin
$siteColl = (Get-PnPTenantSite -Template SITEPAGEPUBLISHING#0) | Select Title,Url,Owner
foreach($site in $siteColl)
{
#Get date Created
Set-PnPTenantSite -Owners $SiteAdminUser -Identity $site.Url
Connect-PnPOnline -Url $site.Url -UseWebLogin
$web=Get-PnPWeb -Includes Created
$CreatedDate=$web.Created
$SiteOwners=Get-PnPGroup -AssociatedOwnerGroup |Select Users
$userEmails=""
foreach($Owner in $SiteOwners.Users)
{
$userEmails= $userEmails +$Owner.Email +";"
}
Remove-PnPSiteCollectionAdmin -Owners $SiteAdminUser
}
Disconnect-PnPOnline
If I closed the login page I got this error
Beta Was this translation helpful? Give feedback.
All reactions