Home › Blog › Licence approval flow
Automation · 3 December 2026 · 12 min read
Most companies assign licences by sending the administrator a message. The administrator opens the admin centre, picks the licence, assigns it, replies. Multiply by every new starter, every move between teams and every Copilot request and it is hours a month, with no record of who approved what. This is the flow we build instead: a form, an approval to the requester’s manager, a group that carries the licence, and an email at the end. Standard connectors only, no extra licence for the flow, an afternoon to build.
This is a build article: six steps, the exact actions, and the six things that go wrong. It assumes any Microsoft 365 business or enterprise plan; every connector used is in the Standard tier, so the flow runs on the Power Automate rights included with the plan and nobody needs a per-user Power Automate licence for it.
The flow could assign the licence to the user directly. It should not. In Microsoft 365, a licence can be attached to a group instead of a person, and everyone in the group gets it: group-based licensing (Microsoft Learn). That turns licensing into membership, which is the thing Power Automate is good at changing, and it has three consequences the admin-centre habit never had:
Group-based licensing is managed in the Microsoft 365 admin centre; you need at least the License Administrator role to attach a licence to a group (Microsoft Learn).
Create a security group for each licence the form will offer, named so that the purpose is obvious in every list: LIC – Microsoft 365 Business Standard, LIC – Microsoft 365 Business Premium, LIC – Microsoft 365 Copilot. Two rules from the connector you will use in step 3 (Microsoft Learn: Microsoft Entra ID connector): the group must not be mail-enabled, and it must not be role-assignable, because the connector cannot add members to either. A plain security group, assigned membership, no owners needed.
Then attach the licence: Microsoft 365 admin centre, Billing › Licenses, choose the product, Assign licenses, search for the group (Microsoft Learn). Two details worth setting now rather than finding later: a user needs a usage location before any licence can be assigned, and under group-based licensing a user without one inherits the tenant’s, which is wrong for a company with staff in several countries (set it on the user, or in your onboarding flow); and a group inside a group does nothing, because nested groups are not supported for licensing (Microsoft Learn). One flat group per licence.
For an add-on that needs a base plan, Microsoft’s guidance is to assign the prerequisite and the add-on to the same group, because an add-on assigned alone to a group fails (Microsoft Learn). For Microsoft 365 Copilot that means a group that carries both the base plan and Copilot, offered on the form as one choice, rather than a Copilot-only group.
A Microsoft Forms form, owned by a group rather than a person so it survives staff changes, with four questions:
Restrict the form to people in the organisation so the requester’s identity is recorded with the response; the flow sends the approval to that person’s manager, which is the whole control.
An automated cloud flow in Power Automate, built by the administrator and running under a connection that can change group membership. The actions, in order, with the setting that matters in each:
The flow: eight actions, all Standard connectors
| # | Connector · action | What to set |
|---|---|---|
| 1 | Microsoft Forms · When a new response is submitted | The form from step 2. |
| 2 | Microsoft Forms · Get response details | Form id and the response id from the trigger. This is what turns the response into usable fields. |
| 3 | Office 365 Users · Get manager (V2) | User: the Responders’ Email from action 2. The output is the approver. If the requester has no manager in Entra, the action fails and the flow stops, which is the correct outcome: fix the directory, not the flow. |
| 4 | Approvals · Start and wait for an approval | Type Approve/Reject – First to respond. Assigned to the manager’s mail from action 3. Title: “Licence request: licence for user”. Details: the four answers. The manager approves from the email, from the Approvals app in Teams, or from the Power Automate portal (Microsoft Learn); the flow waits. |
| 5 | Control · Condition | Outcome is equal to Approve. Everything below goes in the If yes branch; the If no branch is action 8 with a different text. |
| 6 | Microsoft Entra ID · Get user | User Id or Principal Name: the email address from question 1. This confirms the account exists and returns its object id. A typo in the form fails here, before anything is changed. |
| 7 | Microsoft Entra ID · Add user to group | Group Id: the object id of the licensing group that matches the licence chosen in question 2 (a Switch on the answer, or a small lookup table in a Compose action, maps the product name to the group id). User Id: the Id from action 6. |
| 8 | Office 365 Outlook · Send an email (V2) | To the requester, copy the approver: approved, which licence, that it takes effect once Microsoft has processed the group (minutes, usually; longer in large tenants or at busy times, says Microsoft Learn). In the If no branch: rejected, with the approver’s comment. |
The Entra ID connector needs Group.ReadWrite.All, User.ReadWrite.All and Directory.ReadWrite.All on the account behind the connection (Microsoft Learn). Make that a dedicated service account with the User Administrator and Groups Administrator roles, not the administrator’s own account; see step 5 on Conditional Access.
Submit a request for an address that does not exist: action 6 fails and the run shows it, nothing is assigned. Submit one as a person with no manager: action 3 fails, same. Submit one for a user who is already in the group: the add succeeds, the licence is unchanged. Then the real case: submit, approve from the Teams Approvals app, check the group’s membership in Entra, wait, and check the user’s licences in the admin centre. The approval record stays in Approvals with the approver’s name and time, which is the answer the next audit asks for.
The same design, backwards. A leaver flow removes the user from every LIC – group as one of its steps, and the licence goes with the membership. A scheduled flow runs daily, reads the Until when dates from the form responses (or from a SharePoint list, see below), and removes the people whose date has passed, with an email the day before. What happens to the mailbox, the OneDrive and the data when the licence goes is the subject of what happens when a licence is removed; the short version is that removal is not deletion, and there is a grace period, but the leaver’s mailbox needs a decision before the licence is removed, not after.
One ordering rule from Microsoft for moves between licences: add the user to the new group first, confirm the new licence has arrived, then remove them from the old one. The other way round leaves the user unlicensed until processing completes (Microsoft Learn).
Licences in groups, one group per licence; a form that captures who, which and why; the manager as the approver, found from the directory rather than typed; eight actions, all Standard; removal as the reverse of assignment. The administrator stops being the licensing process and becomes the person who checks the error page once a week. As the earlier article on automation argues, the half-day of writing down who may approve what is the part that makes it stick; the flow itself is the smaller job.
Our process automation service builds this flow, the leaver flow and the list version as a fixed-price piece of work after a half-day with the department; licensing optimisation is the review that finds the direct assignments and the unused licences before the groups are created; and under managed Microsoft 365 the weekly check of the licensing errors page is ours.
Sources: Microsoft Learn, Microsoft Entra ID connector reference (tier, actions, permissions, limits), What is group-based licensing in Microsoft Entra ID?, Assign licenses to users by group membership, Identify and resolve license assignment problems for a group, Create and test an approval workflow with Power Automate and Create flows for popular email scenarios. Connector tiers and permissions as published on 3 December 2026.
No. Microsoft Forms, Approvals, Office 365 Users, Microsoft Entra ID and Office 365 Outlook are all Standard-tier connectors, so the flow runs on the Power Automate use rights included with Microsoft 365. A premium connector (HTTP, for instance, to count available licences through Microsoft Graph) would change that; the article keeps to Standard so that it does not.
Through Microsoft Graph, yes, but it needs a premium connector and it loses the point: with a group, removal is one membership change, membership is the record of who holds what, and conflicts and shortages are reported by Microsoft against the group. Group-based licensing is the mechanism Microsoft built for exactly this.
To add members to groups, the Groups Administrator role; to be safe with user lookups, User Administrator as well. Attaching the licence to the group in the first place is a one-off for a License Administrator and is not done by the flow. The connector itself asks for Group.ReadWrite.All, User.ReadWrite.All and Directory.ReadWrite.All on the connecting account.
Microsoft processes group changes in the background and gives no fixed time; in a small tenant it is usually minutes, in large tenants or at busy periods longer. The flow’s final email should say “within the hour” rather than “now”.
Yes, with one adjustment: Copilot is an add-on that needs a qualifying base plan, and Microsoft’s guidance for add-ons under group-based licensing is to assign the prerequisite and the add-on to the same group. So the form offers “Business Standard with Copilot” as one choice backed by one group, not a Copilot-only group.