Hi @Rising Flight,
Based on your query, here is my understanding: You would like to revoke user licenses using Mg graph.
As per your query, here is the Microsoft document to add or remove licenses for user using Microsoft graph PowerShell: Set-MgUserLicense.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | LicenseAssignment.ReadWrite.All, User.ReadWrite.All, Directory.ReadWrite.All, |
Delegated (work or school account) | LicenseAssignment.ReadWrite.All, User.ReadWrite.All, Directory.ReadWrite.All, |
Delegated (personal Microsoft account) | Not supported |
Application | LicenseAssignment.ReadWrite.All, User.ReadWrite.All, Directory.ReadWrite.All, |
Here is the Microsoft document to find SKUs for the licenses: Product names and service plan identifiers for licensing
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".