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

macOS: WHERE are the login accounts / UPNs cached? #36

Open
luckman212 opened this issue Mar 24, 2023 · 5 comments
Open

macOS: WHERE are the login accounts / UPNs cached? #36

luckman212 opened this issue Mar 24, 2023 · 5 comments

Comments

@luckman212
Copy link

luckman212 commented Mar 24, 2023

I spent a couple of hours trying to figure this out and eventually gave up.

When I launch Teams.app (currently using beta 1.6.00.10052 on macOS 13.3.1) I am greeted with a login/auth popup containing 7 accounts. I only currently use 2 of them. The others are related to test accounts that I used at some point in the distant past.

How can I clear this cache or remove these accounts from the chooser? I've traced every file that Teams seems to touch from launch leading up to that window appearing using eslogger. I also traced the HTTP traffic with Proxyman. I still can't figure out where in God's name this data is coming from.

Please help!

screenshot_a5kU8Gsv_gh

@luckman212
Copy link
Author

Nobody knows?

@luckman212
Copy link
Author

Since it was quiet in here (too quiet) I asked over on Ask Different and got an answer!

Apparently these are stored in the macOS Keychain. I came up with this one-liner that successfully cleared them out for me on the few systems I tested it on:

for svce in AdalCache OneAuthAccount; do security delete-generic-password -s $svce; done

Can't believe after so many hours (days) hunting this one down, it turned out to be such a simple answer. But, happy to have it solved.

@bmike
Copy link

bmike commented Apr 11, 2023

That one liner is superb @luckman212 - I am going to make a script so we can automate clearing these on shared computers via MDM and other triggers...

@joeyfrijters
Copy link

www.office-reset.com also has Reset scripts for Teams. They are built by a Microsoft engineer.

@luckman212
Copy link
Author

Looks like it's back to the drawing board for the new Teams V2. The one-liner above no longer does the trick. Seems the cached credentials are hiding somewhere else now. Thanks for another wild goose chase Microsoft. Can you please document this somewhere??

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

3 participants