Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Authenticate to Microsoft Graph the same way that Connect-MSGraph does

$
0
0

I've been reviewing Microsoft Graph documentation on how to to get an access token for the Microsoft Graph API, but I can't figure out how to accomplish authentication in the same way that the Cmdlet "Connect-MSGraph" or Connect-AzureAD or Connect-MSOnline does.

Those Cmdlets take credentials then authenticate to Office365/Azure with them. As long as the user has the right access level, the other Cmdlets within the module will work.

I looked at using the Microsoft.Graph PowerShell module (Connect-MgGraph), but I have to do this process of copy and pasting a URL from the console to my browser then copying and pasting a code from the console into the page in the browser and and so on whenever I want to use Connect-MgGraph. That seems like a ridiculously inconvenient thing to do every time a tech in my department runs this script.


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>