Managing Licenses
License components cover both sides of license work: seeing what you have, and moving it between people.
List Licenses
Returns every license SKU your organisation subscribes to, with the consumed, enabled and available unit counts.
Those counts are the reason this component is more useful than it first looks. They are what you need for cost control and for reordering before you run out — and they are the input for any flow that assigns licenses, because you need the SKU ID from here.
Assign License
Assigns one or more licenses to a user. SKU IDs are given as a comma-separated list, and individual service plans within a SKU can be switched off if you do not want the whole bundle.
The user needs a usage location before any license can be assigned. Without it, Microsoft rejects the request.
Set it when the account is created rather than fixing it afterwards — otherwise an onboarding flow fails halfway through, with the account already made.
Remove License
Removes licenses from a user.
This belongs in every offboarding flow. A disabled account keeps consuming its licenses until someone takes them away, and that is the most common place where spend quietly continues after people leave.
Was this helpful?