Forum Discussion
MS Teams logout issue
awarwick Hi, just to be clear as this hasn't been mentioned. Are these users manually signing out from Teams as well? (top right corner). Teams uses modern authentication and the process and different scenarios such as MFA, domain-joined or not etc. are being described in the previous link I attached. Perhaps this is already taken into consideration but need to ask.
That's correct. The users will use the logout option in the menu at the top left, but when they go to sign in again, they enter their username, click next, and then are signed in without a password. This behaves the same way after a reboot as well.
The PC is domain joined, and we are starting to implement MFA, but this issue existed before any of our users were setup with MFA.
The link in your first response didn't really help. It seems to describe how it's supposed to work, and by their description it sounds like using the logout function should cause Teams to prompt for a password again, but that's not what we are seeing here. Where I am at so far, even after using the logout function, the PC will never ask for a password for that account again, until the PC is fully reimaged.
- ChristianBergstromSep 21, 2020Silver ContributorDo they have to use the desktop app? Whats the purpose of the shared computers? Looked at Teams Rooms? (on mobile so being brief).
- vikashranaFeb 12, 2021Copper Contributor
Hi,
I have an issue with the MS Team login.
I have 2 account
1. From IT Team
2. Reigning Champs
on the same email. I have successfully login into both accounts. But whenever my system restart. Champs accounts are not opening. It is giving an error. But IT account always open in the MS team.
I have cleared data
Clear MS Team Cache:
%AppData%\Microsoft\teams\application cache\cache
%AppData%\Microsoft\teams\blob_storage
%AppData%\Microsoft\teams\databases
%AppData%\Microsoft\teams\cache
%AppData%\Microsoft\teams\gpucache
%AppData%\Microsoft\teams\Indexeddb
%AppData%\Microsoft\teams\Local Storage
%AppData%\Microsoft\teams\tmp
%LocalAppData%\Google\Chrome\User Data\Default\Cache
%LocalAppData%\Google\Chrome\User Data\Default\Cookies
%LocalAppData%\Google\Chrome\User Data\Default\Web DataBut there is going to the same account to champs account.
when un-install then it will work but sometimes is not work. My local system is working fine. but the office system is not working.
I didn't find any correct solutions also there are not correct solutions every time un-install the MS team.
Very bad experience with MS team. I think I will not refer to this. there it, not any clear cache to clear the account and go to Champs account.
Sorry about that
Thanks
Rajput Vikash Rana
- gardenzwergApr 15, 2021Brass Contributor
try this powershell script:
#Stop Teams process Get-Process -ProcessName Teams -ErrorAction SilentlyContinue | Stop-Process -Force Start-Sleep -Seconds 3 Write-Host "Teams Process Sucessfully Stopped" #Clear Team Cache try{ Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\blob_storage" | Remove-Item -Recurse -ErrorAction SilentlyContinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\databases" | Remove-Item -Recurse -ErrorAction SilentlyContinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\cache" | Remove-Item -Recurse -ErrorAction SilentlyContinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\gpucache" | Remove-Item -Recurse -ErrorAction SilentlyContinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\Indexeddb" | Remove-Item -Recurse -ErrorAction SilentlyContinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\Local Storage" | Remove-Item -Recurse -ErrorAction SilentlyContinue Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\tmp" | Remove-Item -Recurse -ErrorAction SilentlyContinue Write-Host "Teams Cache Cleaned" }catch{ echo $_ } #Remove Credential from Credential manager $credential = cmdkey /list | ForEach-Object{if($_ -like "*Target:*" -and $_ -like "*msteams*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}} #Remove Reg.Key $Regkeypath= "HKCU:\Software\Microsoft\Office\Teams" $value = (Get-ItemProperty $Regkeypath).HomeUserUpn -eq $null If ($value -eq $False) { Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Office\Teams" -Name "HomeUserUpn" Write-Host "The registry value Sucessfully removed" } Else { Write-Host "The registry value does not exist"} #Get Desktop-config.json $TeamsFolders = "$env:APPDATA\Microsoft\teams" try{ $SourceDesktopConfigFile = "$TeamsFolders\desktop-config.json" $desktopConfig = (Get-Content -Path $SourceDesktopConfigFile | ConvertFrom-Json) } catch{ Write-Host "Failed to open Desktop-config.json" } #Overwrite the desktop-config.json Write-Host "Modify desktop-Config.Json" try{ $desktopConfig.isLoggedOut = $true $desktopConfig.upnWindowUserUpn =""; #The email used to sign in $desktopConfig.userUpn =""; $desktopConfig.userOid =""; $desktopConfig.userTid = ""; $desktopConfig.homeTenantId =""; $desktopConfig.webAccountId=""; $desktopConfig | ConvertTo-Json -Compress | Set-Content -Path $SourceDesktopConfigFile -Force } catch{ Write-Host "Failed to overwrite desktop-config.json" } Write-Host "Modify desktop-Config.Json - Finished" #Lastly delete the storage.json, this corrects some error that MSTeams otherwise would have when logging in again. Get-ChildItem "$TeamsFolders\storage.json" | Remove-Item