question

RogerSeekell-9360 avatar image
0 Votes"
RogerSeekell-9360 asked RogerSeekell-9360 answered

Get all Azure/ M365 direct-assigned Licenses

I have recently learned that I have over 7000 direct-assigned licenses in M365/Azure. I would like to get a list of all of those users. I figure PowerShell can find these users, but I'm not sure how to identify them as having a direct license. Also, if possible, I'd like a way to remove their direct license, as I want to transition them to group-based license without having to touch all of them. I know PowerShell to put users into a group, but again not sure how to find them and how to remove the license programmatically. Thanks for anything you can provide.

azure-ad-licensing
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarileeTurscak-MSFT avatar image
1 Vote"
MarileeTurscak-MSFT answered

We have an article for migrating users with individual licenses to group-based licenses. The article does not come with an official script for this for this, but a blogger made this script to remove direct license assignments using Powershell. You can run the script with the -WhatIf option and verify your assignments that way.

Another thing you can do is follow the [blog post here][3] that shows how to list all of the licensed users, then select their display name, UPN, license status, and License SKU and export it to a CSV.

Let me know if this is what you are looking for!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RogerSeekell-9360 avatar image
0 Votes"
RogerSeekell-9360 answered

Thank you. This script is doing what I need it to do.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.