Hey everyone, I'm curious about how you're all assigning licenses using Graph. Recently, it seems that the Set-MgUserLicense command is failing for many, including myself. It used to work fine, but now I'm not sure if there's a workaround. Is my best bet really to dig into the API directly? What solutions are you using that are working for you? Also, has anyone noticed any changes to the Graph API that could have caused this? It feels like the SkuID is getting lost during the HTTP request, and I'm looking for any tips or insights you might have!
2 Answers
If you're running into issues, have you tried group-based licensing? It might help you avoid some of the hassles.
I had a similar issue, but I found that adjusting the BodyParameter like described in the GitHub thread actually worked for me. It's a bit perplexing why it suddenly started working, but there you go!
I've faced a totally different issue lately, but it’s weird how my scripts that have been running smoothly also hit a snag involving -BodyParameter.

So, was the problem just that you weren't including the empty remove licenses option?