Remove License
Remove a license from a user.
- Least privileged Microsoft Graph permission to access the action via application:
LicenseAssignment.ReadWrite.All
. - Higher privileged Microsoft Graph permissions to access the action via application:
Directory.ReadWrite.All
,User.ReadWrite.All
.
External Documentation
To learn more, visit the Microsoft Entra ID documentation.
Parameters
Parameter | Description |
---|---|
License | A license GUID to remove.Obtainable via the List User Licenses action in the skuId parameter. |
User | The user ID or principal name of the user to remove the license from. Leave empty for the authenticated user (me ). |
Example Output
{
"accountEnabled": true,
"assignedLicenses": [
{
"disabledPlans": [
"11b0131d-43c8-4bbb-b2c8-e80f9a50834a"
],
"skuId": "0118A350-71FC-4EC3-8F0C-6A1CB8867561"
}
],
"assignedPlans": [
{
"assignedDateTime": "2016-10-02T12:13:14Z",
"capabilityStatus": "capabilityStatus-value",
"service": "service-value",
"servicePlanId": "bea13e0c-3828-4daa-a392-28af7ff61a0f"
}
],
"businessPhones": [
"businessPhones-value"
],
"city": "city-value",
"companyName": "companyName-value"
}
Workflow Library Example
Remove License with Microsoft Entra Id and Send Results Via Email
Preview this Workflow on desktop