Contents
- Why External Access Is the Fastest-Growing Attack Surface
- The Models: Guest, Organizational Account, App-Level
- The Guest Lifecycle — and Where Orphans Come From
- Cross-Tenant Access Settings
- Least Privilege for Guests
- A Worked Example: A Three-Month SharePoint Contractor
- Auditing Guest Sprawl
- When to Keep It Simpler
Why External Access Is the Fastest-Growing Attack Surface
Three properties make external identity the softest part of most security perimeters:
- Volume. In a typical enterprise, external identities now outnumber employees. Every vendor portal, every partner integration, every MSP support technician is another guest — and the count grows because adding one is easier than removing one, by design and by inertia.
- Trust asymmetry. You have no HR process for a guest, no offboarding trigger, and no manager who will tell you the engagement ended. When a contractor's contract lapses, nothing in your systems knows — until someone audits, and most estates never audit.
- Targeting. External accounts are a favorite attack path precisely because the controls are weakest there: guests are more often excluded from MFA baselines (a mistake, not a requirement), more often given broad group memberships, and more likely to keep standing privileges long after the work that needed them is done.
The design goal is the same one you apply to internal users — least privilege, time-boxed, auditable — applied under the extra constraint that the identity lives in someone else's tenant and you cannot force the full lifecycle on it. That constraint is what makes external identity a design problem rather than a checkbox: you have to build the lifecycle controls on your side, because they will not come from the partner's.
The Models: Guest, Organizational Account, App-Level
Three models exist, and the choice between them comes down to who owns the identity and how granular the access has to be:
| B2B guest (direct connect)[1] | Federated organizational account[2] | App-level (workload identity) | |
|---|---|---|---|
| What the identity is | A guest user object in your tenant, mapped to a user in the partner's home tenant | Users in the partner's tenant, trusted at the organizational level — no individual guest per person | A service principal / workload identity for a partner's application, not a human |
| How access is granted | Invite per person; scope with groups, app roles, or SharePoint/Teams permissions | Org-level trust; you share resources with the organization rather than with individuals | The app registers in your tenant and is granted app roles or API permissions |
| Granularity | Per person, per resource | Per organization (coarser) — the users of that org, not a named individual | Per app, per API scope |
| Lifecycle | You manage invite and offboarding per guest | Managed at the org level; users come and go inside the partner's tenant | You manage the app registration and its permissions |
| Best fit | The default for human partner access — contractors, vendors, MSPs with a small named set of people | A partner organization with many users who all need the same shared resource | A partner's application integrating via API — never a human |
The pattern that keeps coming back: humans get guests, applications get workload identities. The most common B2B mistake is creating a human guest account for what is actually an application integration — you get a guest that is hard to secure, that cannot be scoped to API permissions, and that is owned by nobody when the project ends. The second most common mistake is the reverse: a partner's user "helping" with an API integration by using their own guest account and a browser, which makes auditing and revocation a mess and leaves no application-level trail of what the integration actually did.
The Guest Lifecycle — and Where Orphans Come From
Guest sprawl is not a mystery; it is a lifecycle with missing stages. Each stage has a control that, if skipped, becomes an orphaned guest later:
- Invite. Either a user self-invites through a sharing link (SharePoint/Teams) or IT initiates the invite. Self-service invites are fast but uncontrolled — the inviter chooses the permissions, and the permission they choose is usually "Members" rather than "Readers." The landing experience (the page the guest sees at first sign-in) is where you set the terms and capture the information you need to track the engagement.
- Onboarding. The guest lands in your tenant as a guest-type user object. This is where you scope them: into a single group that carries the right app roles, or into direct SharePoint/Teams membership. This is the stage where least privilege is actually enforced — or isn't. Everything after this stage assumes the scoping here was right.
- License and permission assignment. Guests can be licensed (for example, for Exchange Online mailbox access), and what your licensing actually covers for guests varies — check before you promise a mailbox. The permission should be the minimum the work needs: Reader on one site, not Editor on a hub; a specific mailbox, not tenant-wide.
- Renewal. The engagement continues. Is there a trigger that re-verifies the access is still needed? Most estates have none, and that is the gap — the renewal stage is where the time-box actually has teeth, and without it the "three months" in the invite becomes "three years" in the directory.
- Offboarding. Remove the guest from their groups first (access stops immediately), confirm the removal propagated, and only then delete the guest object. The order matters: if you delete the object before the membership is gone, the group's cached permissions can outlive the deletion, and you have removed the identity while keeping the access.
The orphaned-guest problem is the accumulated output of skipped stages: a guest whose engagement ended, whose home account no longer exists, or who was never reassigned anything — but who is still in a group, still licensed, and still able to sign in. Orphans are the reason the audit in the later section is a recurring control, not a one-time cleanup. One cleanup finds this year's orphans; a recurring audit is what keeps the count from growing back.
Cross-Tenant Access Settings
Cross-tenant access settings[3] are the gate in front of the guest objects: they control whether and how users from another tenant can reach your tenant at all, in two directions:
- Outbound. Your users accessing other tenants. Controls: which organizations are allowed or blocked, and which applications in those organizations your users may reach. This is the control for "our staff should be able to use the partner's portal, but not the partner's everything."
- Inbound. Users from other tenants accessing your tenant. Controls: which organizations are allowed or blocked, and which of your applications those organizations' users may reach. This is the control for "the vendor's people can touch the shared site, but nothing else in my tenant."
The value is in the block cases: an organization you have never heard of should be blocked by default, and a partner organization should reach only the specific applications you have exposed — not your whole tenant. Note the layering: cross-tenant settings decide can this organization's users reach my apps at all, while the guest object and group membership decide what that specific user can do once they are in. The settings are organizational (coarser) and are the first layer, not the only one. A permissive cross-tenant setting with tight guest scoping is survivable: more organizations reach the front door, but each individual guest still only gets to the one site or application you granted them. The reverse is not survivable. If the guest objects are over-scoped, the first partner you deliberately allow in brings users who can reach far more than you intended, and the organizational block you were relying on never applies to them — you allowed their organization yourself.
Check your tenant's actual defaults, not the documented ideal. The cross-tenant access model, the set of available restrictions (app-level versus org-level, default-allow versus default-block), and the platform generation your tenant runs have all evolved across releases, and the default posture can differ by tenant age and by whether the tenant is on the newer external identity platform. Confirm your tenant's current defaults and available controls against the current documentation before assuming a default-block you may not have — the estates that get surprised are the ones that assumed "secure by default" without reading what their default actually was.
Least Privilege for Guests
The patterns that keep guests least-privileged in practice, and the order you should apply them:
- Scope to one team, one group. The guest gets membership in one group that maps to one team's access — not direct membership in ten app roles across five applications. When the engagement ends, one group removal revokes everything. Direct, app-by-app memberships are how you end up revoking access in six places and missing the seventh.
- Role-based guest access.[4] The newer model maps guest access to app roles rather than hand-wiring group membership per resource: the guest is granted a role for a specific application, and access is derived from the role. It is cleaner than the manual-group approach for multi-resource access, and it is the direction the platform is moving — worth adopting where your guest population justifies it.
- No admin roles by default. A guest should never hold an administrative role. If a partner genuinely needs administration (an MSP managing parts of your tenant), that is a privileged-access decision: the partner requests the administrative role at the moment they need it, holds it for a fixed window, and loses it automatically when the window closes — which is what Privileged Identity Management provides for external users. That is not the same as a standing admin role sitting on a guest object that no one reviews.
- Time-box the expectation. The guest object itself does not carry an expiration that auto-deletes it — the time-box is a process: a lifecycle workflow or a calendar reminder that triggers offboarding. Set the engagement end date at invite time, because an offboarding without a pre-set trigger is an offboarding that never happens.
The discipline in one test: for any guest, you should be able to answer in one sentence — "they can do X, for team Y, until Z." If you cannot answer that for a guest, the guest is already a sprawl problem.
A Worked Example: A Three-Month SharePoint Contractor
A contractor needs read access to one SharePoint site for three months. The full chain, invite to clean offboarding:
- Invite. The team lead invites the contractor's work email as a guest (or IT does, if your estate gates self-service invites). The contractor accepts and lands in your tenant as a guest. Record the engagement end date in whatever system tracks vendor work — the date is the trigger for everything that follows.
- Scope. IT (or the team lead, under a standing rule) adds the guest to a single security group that has Reader permission on the target site. Nothing else. No Editor, no hub-site membership, no second group "just in case" — the just-in-case group is the orphan of next year.
- License only if needed. Guest access to read SharePoint documents does not require a guest license. If the contractor also needs a mailbox, check what your guest licensing covers and assign only that — a mailbox is a standing, tenant-wide resource, and it is the one guest license that survives an engagement by accident.
- Verify. The contractor signs in and confirms they can see the site — and nothing else. A two-minute check that they are a member of exactly one group catches the over-scoping mistake while it is still a five-minute fix.
- Mid-engagement check (month two). The calendar trigger set at invite reminds IT to confirm the access is still needed. If the scope has grown (it often has), adjust the group membership now, deliberately — not at offboarding, when "just this one more thing" is already "these three things."
- Offboard (month three). Remove the guest from the group first; confirm the removal propagated; then delete the guest object. Log the offboarding against the engagement record.
- Audit trail. In the audit logs, the guest's creation, group membership, and deletion are all recorded events — that trail is your evidence that the lifecycle closed, and it is what the recurring audit in the next section reads.
The anti-pattern this sequence prevents is the common one: the contractor is invited, added to the site's Members (Editor, because "Readers" felt like it would cause friction), and the engagement ends with nobody removing them. Six months later they are still in the site, still licensed if they got a mailbox, and the only way to find them is a guest audit that nobody has run since they were created.
Auditing Guest Sprawl
The sprawl you cannot see is the sprawl that gets you. The recurring audit, and what each part finds:
- Guest inventory. In the Entra admin center, the external (guest) users view: total count, and the split between recently active and inactive (no sign-in in, say, 90 days). The inactive count is your orphan candidate list — every one of them is either a legitimate dormant guest you should explain or a cleanup you skipped.
- Sign-in activity. The sign-in logs, filtered to guest user type: which guests actually signed in recently, from where, and against which applications. A guest you never invited, with sign-ins, is a finding.
- Group membership of guests. For each guest: which groups are they in, and does each group map to a live engagement? A guest in a group whose engagement has ended is an orphan with a group to remove them from.
- Admin roles on guests. A direct check: are any guests assigned administrative roles? The answer should be zero. Anything else is an incident to work, not an audit line to file.
- Creation and deletion events. The audit logs for guest create and delete. A spike in creations with no matching deletions is the leading indicator of a sprawl trend — it shows you the problem a quarter before the inventory count does.
Run it on a schedule[5] — quarterly is the practical minimum for most estates — and treat the output as a work list: orphans to delete, over-privileged guests to re-scope, and the process gaps that let them through. The audit is not a compliance checkbox; it is the control that makes "least privilege" true for identities you do not own. Without it, every promise in the earlier sections is only as good as the person who made it remembering to follow through.
When to Keep It Simpler
The full machinery — organizational cross-tenant controls, role-based guest access, lifecycle workflows — is for estates where the external footprint is large enough that sprawl is a measurable, recurring risk. For smaller footprints, simpler is genuinely better, because a complex control that nobody audits is weaker than a simple control that everyone understands:
- A small set of named partners. Per-person guest invites, one group per guest, and a calendar reminder for offboarding is sufficient. You do not need organizational federation for five contractors, and standing up the machinery you will not operate is how you end up believing you have controls you do not have.
- A fully federated alternative. If a partner has their own tenant and you want organization-level trust for a shared resource, the organizational-account model from the earlier section is the right tool: you share with the organization, and the individual users inside it come and go without you creating a guest for each of them. It is coarser per person and cleaner at scale — the trade is granularity.
- File-only, ephemeral access. For a one-off "send these documents to a vendor," an external sharing link — scoped, expiring — is a lighter control than a guest account, with the tradeoff that the file is shared rather than the person, and per-user audit of who looked at what is gone. Know which trade you are making when you choose it.
The decision rule: the complexity of your external-identity program should track the size and risk of your external footprint. Over-engineer a five-person contractor base and you will maintain controls nobody audits; under-engineer a five-hundred-partner estate and you will have sprawl you cannot see.
References
- Microsoft — "Microsoft Entra External ID — B2B direct connect (guest users)": guest invites, onboarding, and lifecycle. Microsoft Learn, current.
- Microsoft — "Organizational accounts (B2B federation)": org-level trust and federated organizational access. Microsoft Learn, current.
- Microsoft — "Cross-tenant access settings": inbound and outbound allow-block controls and app restrictions. Microsoft Learn, current.
- Microsoft — "Role-based guest access": mapping guest access to app roles for application-level scoping. Microsoft Learn, current.
- Microsoft — "Guest user lifecycle and external identity reports": the external users reports and lifecycle workflows for recurring auditing. Microsoft Learn, current.