Licenses and External Users in Microsoft Entra ID
30-second answer
A license turns on paid features for a user, such as Microsoft 365 E3 or Microsoft Entra ID P1/P2. You can assign it directly to a user, which needs the user's usage location first, or to a group (group-based licensing, needs Entra ID P1), so members gain and lose it as they join and leave. External users from other organisations join as guests through B2B collaboration: they sign in with their own account, appear with user type Guest and an #EXT# UPN, and what they can do is set in External collaboration settings and cross-tenant access settings.
Simulate it » No Azure account neededExam objective: 1.1.3 Manage licenses in Microsoft Entra ID. 1.1.4 Manage external users. (Skills measured as of April 17, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
In <strong>Microsoft Entra ID → Groups</strong>, open <strong>Sales-Team</strong>. Licensing a group beats licensing 18 people one by one.
👆 Click the glowing item in the portal to continue
Read the steps as text
- In Microsoft Entra ID → Groups, open Sales-Team. Licensing a group beats licensing 18 people one by one.
- Open Licenses and select + Assignments. Group-based licensing needs Microsoft Entra ID P1 (or a plan that includes it, such as Microsoft 365 E3).
- Pick the product and turn off any service plans the team doesn't need. Then Save.
- Done. Members without a usage location get the directory's location. A direct assignment, by contrast, fails until the user has one.
- Now a partner. In Users, select + New user → Invite external user.
- Priya keeps her own Fabrikam account and password. You manage what she can reach, not her credentials.
- Priya shows up as a Guest with #EXT# in her UPN. CLI has no invite command; use the portal or New-MgInvitation in Microsoft Graph PowerShell.
- External collaboration settings decide who may invite guests, what guests can see, and which domains are allowed.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
Licenses and guests
Group-based licensing gives every member of a group a license, and takes it back when they leave. A direct assignment needs the user's usage location first. A guest from a partner tenant signs in with their own account (B2B collaboration).
🤔 What happens if…
Read this tour as text
- Users and groups in your tenant. Your Microsoft Entra tenant holds users and groups. In an assigned group you add people yourself. In a dynamic group a rule such as
user.department -eq "Sales"adds and removes them as their properties change (Entra ID P1). - Licenses and guests. Group-based licensing gives every member of a group a license, and takes it back when they leave. A direct assignment needs the user's usage location first. A guest from a partner tenant signs in with their own account (B2B collaboration).
- Self-service password reset. SSPR lets users reset their own password at aka.ms/sspr. You choose who it's for (None, Selected group or All) and how many methods they must prove (1 or 2). Users must register methods before they can use them.
- The management ladder. Management groups sit above subscriptions, which hold resource groups, which hold resources. You can nest management groups six levels below the Tenant Root Group. Move a subscription and it takes on its new parent's policies and roles.
- Role assignments flow down. An Azure role assignment = who (user, group, service principal, managed identity) + role definition + scope. Assign it at a management group and it inherits to every subscription, resource group and resource below.
- Effective access. Roles add up. Owner does everything, Contributor everything except grant access, Reader only looks, and User Access Administrator only manages access. A deny assignment beats every role.
- Azure Policy: deny, audit, modify. Azure Policy checks what gets deployed. Deny refuses it, Audit lets it in but flags it non-compliant, Modify changes it (for example adds a tag) and needs a managed identity. A remediation task fixes resources that already exist.
- Locks and tags. A CanNotDelete lock lets people change a resource but not delete it. A ReadOnly lock blocks every write. Locks apply to everyone, Owners too. Tags on a resource group aren't inherited unless a policy copies them down.
- Budgets and Advisor. A budget watches spend for a scope and sends alerts at thresholds, on actual or forecasted cost, optionally to an action group. It doesn't stop anything by itself. Azure Advisor points at savings like idle VMs.
Contoso hired Sam for the sales team. Create the account, see why the license won't stick yet, fix the user's properties so a dynamic group picks Sam up on its own, license the whole group in one go, then invite a partner as a guest.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
People leave the sales team and still hold a Microsoft 365 license.
😊 THE SOLUTION
License the group, not the person, and invite partners as guests.
- Unused paid licenses✓ Group-based licensing
- Direct assignment fails✓ Set usage location first
- Partner accounts to manage✓ Guests use their own sign-in
Start with a question
How does a gym give members the right pass, and let a visiting friend in for a day?
A gym hands each member a pass for the classes they’ve paid for. Some companies buy passes for a whole team, so anyone who joins the team gets one and anyone who leaves hands it back. And when you bring a friend, the gym doesn’t make them a new ID card. They show their own driving licence and sign in as a guest.
In Microsoft Entra ID the pass is a license, the team deal is group-based licensing, and the visiting friend is a B2B guest who signs in with their own company account.
Explain it like I’m 10
The technical explanation
Licenses
Products such as Microsoft 365 E3, Microsoft Entra ID P1 and P2 are bought as a number of seats. Each license contains service plans (Exchange Online, Teams, Entra ID P1 and so on) that you can switch off when you assign it.
| Direct assignment | Group-based licensing | |
|---|---|---|
| Where | User → Licenses → + Assignments | Group → Licenses → + Assignments |
| Needs | Usage location on the user | Entra ID P1 (or a plan that includes it) |
| Leavers | You remove it by hand | Removed when they leave the group |
| Missing usage location | Assignment fails | The directory’s location is used |
| Not enough seats | Assignment fails | Members show an error state; add seats, then Reprocess |
Pair group licensing with a dynamic group and licenses follow HR data with no clicks at all. If a user gets the same product directly and from a group, they use one seat, and you can remove the direct one safely.
# Microsoft Graph PowerShell
Update-MgUser -UserId sam@contoso.com -UsageLocation "IN"
$e3 = Get-MgSubscribedSku | Where-Object SkuPartNumber -eq "SPE_E3"
Set-MgUserLicense -UserId sam@contoso.com -AddLicenses @{SkuId = $e3.SkuId} -RemoveLicenses @()
External users (B2B collaboration)
Users → + New user → Invite external user sends an invitation. The guest redeems it and signs in with their own Microsoft Entra account, a Microsoft account, Google or a one-time email passcode. In your tenant they appear with User type: Guest, and a UPN like priya_fabrikam.com#EXT#@contoso.onmicrosoft.com. You give them access the same way as anyone else: groups, app assignments, Azure roles.
External Identities → External collaboration settings controls:
- Guest user access: same as members, limited (the default), or restricted to their own objects.
- Guest invite settings: from “anyone, including guests” down to “no one”.
- Collaboration restrictions: allow any domain, deny listed domains, or allow only listed domains.
Cross-tenant access settings go further per organisation: block or allow inbound and outbound B2B, and trust the partner’s MFA so guests aren’t asked twice. For customer-facing sign-up apps, Microsoft points you to External ID in an external tenant instead of B2B guests.
-
1 Group
Sales-Team is a dynamic group of everyone in Sales.
-
2 License
Microsoft 365 E3 is assigned to the group, so every member gets a seat.
-
3 Invite
priya@fabrikam.com is invited and redeems with her Fabrikam account.
-
4 Access
Priya joins a project group that has access to one SharePoint site.
Architect level Guests and Azure resources
Guests can hold Azure roles too. Invite the partner, then assign them, or better a group they’re in, a role at a resource group. By default guests can’t browse your directory freely, which is why the “limited access” setting exists. If a guest needs to see other users in a picker, you either raise their access level or give them a directory role like Directory Readers. Remove guests (or let access reviews remove them) when the work ends; stale guests are a common audit finding.
Real-world business scenario
Northwind Traders (fictional)
- The problem
- Northwind paid for 40 Microsoft 365 E3 licenses still held by people who'd changed roles, and consultants from an agency shared one generic account.
- What they used
- Group-based licensing on dynamic department groups, and B2B guest invitations for each agency consultant, with invitations restricted to the agency's domain and MFA trusted from the agency tenant.
- Why that choice
- Licenses move with the department attribute, and every consultant signs in as themselves, so actions are traceable and access ends when the guest is removed.
- The result
- About $1,400 a month of unused licenses was freed up and the shared account was deleted.
When to use it and when not to
✓ Use it when…
- Licenses that should follow team membership (group-based licensing).
- One-off licenses for a specific person, after setting usage location (direct).
- Partners, contractors and suppliers who already have a work account (B2B guests).
✕ Think twice when…
- Creating member accounts with passwords for external people. Invite them as guests.
- Group licensing on a group that will exceed your seat count without monitoring errors.
↔ Alternatives to consider
- External ID (external tenant) for customer sign-up and sign-in to your apps.
- Entitlement management access packages when guests should request access that expires on its own.
Test yourself with exercises
5 original practice questions in the AZ-104 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between assigning a license directly and through a group?
Model answer
Direct means I pick a user and give them the license. Group-based means I give the license to a group, and everyone in it gets it. When someone leaves the group they lose it, which stops paid licenses sitting with people who don't need them.
Intermediate A direct license assignment fails. What's the first thing you check?
Model answer
The user's usage location. Licenses depend on which country the service is used in, so the portal won't assign one until usage location is set. After that I'd check whether there are any free seats left for that product.
Experienced developer Some members of a licensed group show an error state. Why?
Model answer
Usually not enough seats, so the group can't license everyone, or a conflict between two service plans the user gets from different groups. I'd add seats or remove the conflicting plan, then select Reprocess on the group's Licenses blade. Members without a usage location use the directory's location under group licensing, so that's rarely the cause.
Scenario A partner's consultants need access to one SharePoint site and an internal app for three months. How would you set it up?
Model answer
I'd invite them as B2B guests, ideally into a group that has access to the site and the app, so I'm not managing a password for them. I'd restrict invitations to the partner's domain in External collaboration settings, require MFA through Conditional Access, and put an access review or an expiry on the group so access ends with the project.
Quick revision
Key points
- Direct license assignment needs a usage location on the user.
- Group-based licensing (Entra ID P1) gives every member the license and removes it when they leave.
- Not enough seats puts members in an error state; add seats, then Reprocess.
- Guests sign in with their own account. User type Guest, UPN contains #EXT#.
- External collaboration settings control guest access level, who can invite and allowed domains.
Important terminology
- Usage location
- The two-letter country where a user mainly uses Microsoft services. Required before you assign a license directly.
- Group-based licensing
- Assigning licenses to a group so every member inherits them. Needs Microsoft Entra ID P1 or a plan that includes it.
- Service plan
- One service inside a license, such as Exchange Online or Teams, which you can switch off per assignment.
- B2B collaboration
- Inviting people from other organisations as guests who sign in with their own identity.
- Guest user
- A user object with user type Guest that represents an external person in your tenant.
- External collaboration settings
- Tenant settings for who can invite guests, what guests can see, and which domains are allowed.
- Cross-tenant access settings
- Inbound and outbound rules per partner organisation, including trusting their MFA and device claims.
Common mistakes
- Thinking a guest needs a password created in your tenant. They use their home identity.
- Assigning licenses user by user when a group would keep them correct automatically.
Exam tips
- "License assignment fails for a new user" = set the usage location.
- "Licenses should follow department membership" = group-based licensing on a dynamic group.
- "Only allow guests from fabrikam.com" = Collaboration restrictions in External collaboration settings.
Five quick revision questions
-
1.What must be set before you assign a license directly?Show
The user's usage location.
-
2.Which license does group-based licensing need?Show
Microsoft Entra ID P1 (or a plan that includes it).
-
3.How can you spot a guest's UPN?Show
It contains #EXT#, for example priya_fabrikam.com#EXT#@contoso.onmicrosoft.com.
-
4.Where do you limit invitations to certain domains?Show
External Identities, External collaboration settings, Collaboration restrictions.
-
5.What do you select after adding seats for a group in error?Show
Reprocess, on the group's Licenses blade.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Configure Self-Service Password Reset (SSPR)
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.