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.