20+ years with Microsoft 1,100+ organisations under management 113 countries invoiced locally 5 of 6 Solutions Partner designations 4-hour first response
IT Partner.Microsoft Solutions Partner +44 20 8142 5752 Talk to us Get a quote

Home › Blog › Licence approval flow

Automation · 3 December 2026 · 12 min read

Approve and assign a Microsoft 365 licence with Power Automate, without an admin ticket

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.

Why a group, not a direct assignment

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).

Step 1. One group per licence

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.

Step 2. The request form

A Microsoft Forms form, owned by a group rather than a person so it survives staff changes, with four questions:

  1. Who is the licence for? Text, and the instruction “their work email address”. The flow uses this as the user principal name. (A form that asks for a name instead will cost you a lookup step and a wrong match a month.)
  2. Which licence? Choice: the groups from step 1, by their product names. One answer.
  3. Why? Text. Goes to the approver verbatim.
  4. Until when? Date, optional. For trials and project staff; the removal flow at the end uses it.

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.

Step 3. The flow, action by action

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 · actionWhat to set
1Microsoft Forms · When a new response is submittedThe form from step 2.
2Microsoft Forms · Get response detailsForm id and the response id from the trigger. This is what turns the response into usable fields.
3Office 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.
4Approvals · Start and wait for an approvalType 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.
5Control · ConditionOutcome is equal to Approve. Everything below goes in the If yes branch; the If no branch is action 8 with a different text.
6Microsoft Entra ID · Get userUser 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.
7Microsoft Entra ID · Add user to groupGroup 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.
8Office 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.

Step 4. Test it with the wrong inputs first

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.

Step 5. The six things that go wrong

  1. No licences left. The add to the group succeeds and the licence is not assigned. Microsoft shows the error against the group and the user in the admin centre (“not enough licenses”: buy more, remove unused direct assignments, or free licences from other groups, Microsoft Learn). The flow cannot see this on its own with Standard connectors, so give the administrator a weekly fifteen minutes on the group-based licensing errors page (Microsoft Learn), or add a scheduled flow that counts members against the licences bought.
  2. Conflicting plans. A user with Office 365 E1 assigned directly who is added to the Business Standard group has two conflicting service plans; the group assignment errors until the direct licence is removed (Microsoft Learn). The fix is the migration to groups described in the same documentation: move everyone first, then stop assigning directly. how to find unused licences covers finding the direct assignments.
  3. Usage location. No location, no licence. Set it in the onboarding flow or on the user before this flow runs.
  4. Conditional Access on the connection account. The connector documentation warns that a connection under an account subject to MFA through Conditional Access may not work as expected (Microsoft Learn). The service account from step 3 gets an exclusion from the MFA policy that is narrow (that account, that app) and compensated: a long random password, no mailbox, sign-in alerts, and a named owner who reviews it quarterly.
  5. The wrong group type. A mail-enabled security group or a Microsoft 365 group fails at action 7. Recreate the group as a plain security group; licences attach to it the same way.
  6. Throttling. The connector allows 200 calls per connection per minute (Microsoft Learn); a request form will never approach it, a bulk onboarding flow that reuses the connection might. Separate connections per flow.

Step 6. Taking the licence away again

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).

Variations we build

The takeaway

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.

Questions we are asked about the flow

Does the flow need a Power Automate licence?

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.

Can the flow assign the licence directly instead of through a group?

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.

Which role does the service account need?

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.

How long until the user has the licence?

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”.

Does this work for Microsoft 365 Copilot?

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.

Worth reading next