![]() Once you have the list prepared, all you need to do is handle connectivity and iterate over each user to remove any corresponding licenses. Because the Graph has not been designed with “ease of use” in mind, make sure to use a proper identifier for the user, such as objectID or UserPrincipalName. The premise remains the same – you’ve prepared a list of users, either via CSV file or by generating the list dynamically via filters and such, and you need to remove all licenses assigned to them in a single step. We’re starting with the “remove all licenses from a set of users” scenario, which we covered previously here and here. Which in this case means using the Graph API directly, or the “Microsoft Graph” (MG) wrapper module, also known as Microsoft Graph PowerShell SDK. As Microsoft has committed to deprecating the good old MSOnline and the not so good Azure AD PowerShell modules next year, I’ve started updating some of the scripts and code samples I’ve shared on this blog to use the latest and greatest. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |