## Getting MS Graph to not suck
Yeah, this is an annoying setup. You would think that it being something that works within the MS Ecosystem means it's simple and straightforward, but it isn't.
https://www.youtube.com/watch?v=iVqLMo9H7Rs
and his little code snippet on his [GitHub linked here](https://github.com/eduardoEB-dev/TrainingAzure/blob/master/AssignMGIdenGraph.ps1)
Big thanks to
https://learn.microsoft.com/en-us/powershell/microsoftgraph/get-started?view=graph-powershell-1.0
This is the default link that MS uses for checking what permissions you might need, and what a very basic "hello world" type of command in Graph would be.
`Get-MgUser -Filter "displayName eq 'YOURDISPLAYNAME'"`
If the above works then you know you're connected and at the very least have the following permissions enabled:
`Read/Write Directory Data` & `Read/Write all User's Full Profiles`
If you can get Runbooks to succesfully do the Get-MgUser -Filter "displayName eq 'YOURDISPLAYNAME'" then you know you're connected and at the very least have
This link lets