QuickFix: New-MgUser -AccountEnabled

If like me you just spent twenty minutes trying to make sense of this:

https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/new-mguser?view=graph-powershell-1.0#-accountenabled

Read more of this post

Efficiently Finding Graph API Permission Guids using PowerShell Script

I have been writing some tools recently that use Application Authentication to connect to Microsofts Graph API. Part of the tool installation process is that it requests access to the various API permissions, there is a great resource for finding those here: Graph Permissions

The difficulty I found though, was when requesting permissions programmatically, you do not use the familiar name like ‘Sites.Read.All’ instead you use a resource access object which contains some guids.

Read more of this post