Remove license
BetaChanges data
Removes Microsoft 365 licenses from a person, freeing those seats for someone else.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| UserRequired | A user's object id, or their sign-in address. |
| Licenses to removeRequired | SKU ids, comma-separated. A license the person has through a group stays; remove them from the group instead. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
user | text |
licenses | text |
Output
| Field | Type |
|---|---|
user | object |
user.id | string |
user.displayName | string |
assignedLicensesLicenses the user now has | array |
Sample output, and the expression for each field
- assignedLicenses[]
- user
- assignedLicenses[]
- displayName"Jane Doe"
- id"1"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"licenses": "<licenses to remove>",
"user": "<user>"
},
"label": "Remove license",
"type": "graph.removeLicense",
"version": 1
}