Forum Discussion
Nick_DS
Apr 16, 2023Copper Contributor
How to use MSgraph for different tenant
Hi, yesterday I managed to get result using this code: Install-Module Microsoft.Graph -AllowClobber -Force Import-Module Microsoft.Graph.Users Connect-MgGraph -Scopes "User.Read.All","AuditLo...
- Apr 17, 2023Use the Disconnect-MgGraph cmdlet to clear the current context, then connect anew. You might need to provide additional parameters depending on your config:
Connect-MgGraph -ContextScope Process -ForceRefresh
VasilMichev
Apr 17, 2023MVP
Use the Disconnect-MgGraph cmdlet to clear the current context, then connect anew. You might need to provide additional parameters depending on your config:
Connect-MgGraph -ContextScope Process -ForceRefresh
Connect-MgGraph -ContextScope Process -ForceRefresh