Last updated
PS C:\Windows\system32> $token = 'eY.....'
PS C:\Windows\system32> Connect-MgGraph -AccessToken ($Token | ConvertTo-SecureString -AsPlainText -Force)
Welcome to Microsoft Graph!
Connected via userprovidedaccesstoken access using bd46fc07-1626-43be-80b7-fkfkfkf
Readme: https://aka.ms/graph/sdk/powershell
SDK Docs: https://aka.ms/graph/sdk/powershell/docs
API Docs: https://aka.ms/graph/docs
NOTE: You can use the -NoWelcome parameter to suppress this message.
PS C:\Windows\system32> Get-MgContext
ClientId : bd46fc07-1626-43be-80b7fgfgfgfgff
TenantId : 2d50cb29-5f7b-48a4-87ceffgffgfgfg
Scopes : {User.Read, User.ReadBasic.All, profile, openid...}
AuthType : UserProvidedAccessToken
TokenCredentialType : UserProvidedAccessToken
CertificateThumbprint :
CertificateSubjectName :
SendCertificateChain : False
Account : x@pp.onmicrosoft.com
AppName : student60
ContextScope : Process
Certificate :
PSHostVersion : 5.1.17763.1490
ManagedIdentityId :
ClientSecret :
Environment : Global