r/PowerShell • u/Unlikely_Tie1172 MVP, Community Blogger • Aug 28 '26
News Microsoft To Enforce WAM for Delegated Interactive Graph Sessions
In a GitHub post, Microsoft says that interactive Graph sessions using the default Microsoft Graph Command Line Tools app will use the Web Account Manager (WAM) in the future. Some administrators use older versions of the Microsoft Graph PowerShell SDK for continued access to browser-based authentication, but this won’t be possible once Microsoft makes the server-side change to enforce WAM on an undefined future date. Teams and Exchange Online also use WAM, apparently for better security.
https://office365itpros.com/2026/08/28/interactive-graph-sessions-wam/
1
u/BlackV Aug 28 '26
Thought they already were? Wasn't that like last month or the month before?
17
u/Ecrofirt Aug 28 '26
I wouldn't have a problem with this if it worked consistently. Sometimes it continues to use a cached token even if I force it to use a process context. This leads to issues where I can't run certain commands despite having a role enabled because it flat out refuses to get a new token until the first one expires.
I wrote my own browser-based token function to get an interactive browser token that works 100% or the time when WAM is being a butthead. Works 100% of the time.i called the function GraphSucks.
4
u/Sensitive-Ear8659 Aug 29 '26
What about Mac/linux with no WAM? I use Mac pwsh round the clock and this would suck..
1
u/elecpurch Aug 29 '26
With WAM, is there a way to enforce MFA when connecting to Graph? For example - when trying to activate a PIM role via Graph, i get an error that the activation of this role requires MFA.
0
u/[deleted] Aug 28 '26
[deleted] — view deleted comment