Conditional access for contractors and agencies

The riskiest identity in most tenants belongs to somebody who finished a project two years ago and was never removed.

External collaborators are a different object with different defaults, and they accumulate because nothing in the platform removes them when the work ends. A workable policy set is small: require multi-factor authentication for all guests, restrict them to the applications they need, block legacy authentication, and put every guest on a recurring access review. Deploy in report-only mode first, because the exclusions you did not think of are what break a policy on a Monday morning.

The account nobody owns

Run one query against your tenant: list every guest account and the date it last signed in. On most estates I look at, a meaningful share have not signed in for over a year, and several belong to firms the client no longer works with.

Nothing in the platform created that situation. It is a structural consequence of how external collaboration begins. Somebody shares a document with an agency during a project, the platform creates a guest object, the project ends, and the guest object persists because the person who shared the document has no reason to think about it again and no process asks them to.

The account is still valid. It still has access to whatever it was granted. And it sits outside every internal control you built, because it belongs to a directory you do not administer, protected by whatever practices that other organisation happens to follow.

That last point is the real exposure and it is worth stating without euphemism. A guest account is a credential you cannot manage, protecting data you are accountable for, held by an organisation whose security posture you have never audited.

The answer is not to stop collaborating externally. It is to make the external identity a governed object with a defined lifecycle, which is exactly what it is not by default.

Guests are a different object with different defaults

Understanding one mechanism makes the rest of this article obvious. When you invite someone from another organisation, Microsoft's B2B collaboration model creates a guest user object in your directory that points at their home directory. They authenticate there. You authorise here.

So authentication strength is partly theirs and authorisation is entirely yours. If their organisation does not enforce multi-factor authentication, their sign-in to your tenant is protected by a password alone unless you require otherwise. You can require otherwise, and that is the single highest-value policy on this page.

Before any of the policy work, though, check what your tenant currently permits anyone to do. Microsoft's external collaboration settings control who may invite guests and what guests can see once they are in. The default is more permissive than most organisations would choose if anybody had chosen.

The two settings worth deciding deliberately are who can issue invitations, and how much of the directory a guest can read. A guest who can enumerate your full user list has more information about your organisation than most of your clients do.

The policy set, and what each one is for

The policy set, and what each one is for
PolicyApplies toWhat it prevents
Require multi-factor authentication for all guestsAll guest and external usersA password from an unmanaged directory being sufficient
Restrict guests to named applicationsAll guests, all cloud apps except an allowlistLateral access to systems the engagement never involved
Block legacy authenticationEveryone, guests includedProtocols that cannot present a second factor at all
Require reauthentication on a shorter intervalGuests onlyA session persisting long after the engagement ends
Recurring access reviewEvery guest, quarterly or semi-annuallyThe account that outlives the project by two years

Five policies, and the first and last do most of the work. Everything else is refinement.

Microsoft's conditional access policy building guidance sets out the structure every one of these shares: signals decide who and what the policy applies to, and a decision to grant or block follows. Keeping each policy to a single purpose is what makes the estate diagnosable later, because a user who is blocked needs somebody to identify which policy blocked them.

Blocking legacy authentication deserves its own note. Older protocols cannot present a second factor, so a tenant that permits them has an unauthenticated bypass around every multi-factor policy above it. It is the most commonly missed item on this list, and it makes the others partly decorative.

The framing behind all of it is that conditional access is the policy engine that evaluates every sign-in, so a signal you do not check is a decision you are not making.

Report-only mode first, always

This is the operational discipline that prevents the outage, and it is the step people skip because the policy looks obviously safe.

Report-only mode evaluates a policy against real sign-ins and records what would have happened, without enforcing anything. Microsoft documents report-only mode and the insights workbook that shows you the impact before you commit to it.

Run every new policy this way for a week minimum, and read the results rather than glancing at them. What you are looking for is the population you did not think about: the service account that authenticates in a way the policy blocks, the partner on a network you did not expect, the automation running under somebody's personal credential.

Every one of those is a Monday morning incident if you enforce blind, and the incident is worse than it sounds because the symptom is a person unable to work and no obvious cause.

The rule I keep to is that a policy affecting more people than I can name individually goes to report-only first. That threshold is low on purpose.

Exclusions are where policies die

Every conditional access estate accumulates exclusions, and each one starts as a temporary measure to unblock somebody urgent.

The pattern is consistent. A policy blocks a partner, the partner escalates, someone adds an exclusion group to unblock them today, and the exclusion is never revisited because nothing generates a reminder. Two years later the exclusion group has eleven members and effectively repeals the policy.

Three rules keep this manageable. Exclusions go in a named group, never inline against an individual, so the exclusion is visible in one place. Every exclusion group has an owner and a review date recorded when it is created. And the emergency access accounts are the one permanent exclusion, deliberately, because break-glass accounts exist for exactly the lockout this creates.

The uncomfortable version of the third rule: if you do not have break-glass accounts, do not deploy a policy scoped to all users. A conditional access policy applied to everyone, including every administrator, is a mechanism for locking yourself out of your own tenant, and it does not warn you first.

Offboarding is a review, not an email

The lifecycle question is where this either works or does not, and it cannot depend on somebody remembering.

Access reviews are the mechanism. Microsoft supports managing guest access with recurring access reviews, where reviewers confirm continued need on a schedule and unreviewed access is removed automatically.

The automatic removal is the part that matters. A review that produces a list somebody should action is a list nobody actions. A review where the default outcome is removal works while everybody is busy, which is the only condition that counts.

Set it to review guests every six months, assign the reviewer to be the internal sponsor rather than a central administrator, and let the default remove anyone nobody vouches for. The sponsor knows whether the engagement is live. A central administrator does not, and will approve everything rather than risk blocking someone.

For agencies specifically, tie the review to the engagement rather than the calendar. A statement of work has an end date, and that end date should appear in the scoping document as an access term, alongside deliverables. Naming it during scoping is a much easier conversation than raising it afterwards.

The other side of the table

Everything above assumes you are the client. If you are the agency, you are the guest in somebody else's tenant, and the same controls apply to you from the other direction.

Two things follow. First, your own account hygiene is now part of your client's risk register, so multi-factor authentication on every account your team holds is table stakes rather than a nice-to-have. Second, expect the controls, and read them as a client who takes their obligations seriously rather than as friction.

The parallel in advertising platforms is exact. Client accounts accessed through a manager account rather than through individual logins, access granted at the account level rather than by sharing a credential, and access removed when the engagement ends. That is the whole substance of manager account access governance, and it fails the same way when nobody owns the removal step.

The reason to care is that the reconstruction after an incident is the expensive part. On an advertising account compromise involving more than forty-one thousand dollars of unauthorised spend, rebuilding who had access to what consumed more effort than the containment did. An access model that is current is worth far more than one that is thorough and eighteen months old.

The same argument applies to the files those collaborators touch. Guest access to a well-structured site with inherited permissions is a bounded grant. Guest access to a site where permissions were customised folder by folder is a grant nobody can describe, which is why client file structure is an access decision rather than a tidiness one.

Start a conversationMore insights