Forum Discussion
malvinportner
Jan 11, 2023Copper Contributor
Get Accesstoken from Connect-MgGraph
Hello there I am using the PowerShell Graph SDK and connecting using the connect-mggraph cmdlet to authenticate to Azure (manual Login). I am assuming, this cmdlet somehow creates something l...
Pascal_Verbruggen
Jul 13, 2023Copper Contributor
In case somebody else has the same question: [System.Text.Encoding]::Ascii.GetString([Microsoft.Graph.PowerShell.Authentication.GraphSession]::Instance.MSALToken) | ConvertFrom-Json
But you probably don't need it. Usually Invoke-MgGraphRequest suffices.