Two IT staff checking equipment and a laptop in a server room

LIBRARY 1.13Microsoft 365 Security Library

How to Review and Remove Guest Accounts in Microsoft 365

Every partner, contractor and client you share a Team or a file with becomes a guest in your tenant, and most of them never leave. Here is how to find the stale ones, remove them safely and keep it that way.

Reviewed by Ali Hassani, C|CISO, CISSP · Last verified November 20, 2026

25+ yearsIT and cybersecurity experience
Certified CISOC|CISO · CISSP · Microsoft · Cisco
Southern CaliforniaBased in Irvine, on-site by appointment
NationwideRemote Microsoft 365 audits

Intelligence Center › Microsoft 365 Security Library › Identity and sign-in

Audit item ID-020
Time to fixAbout 1 hour for the settings, then a quarterly review
Staff impactLow: active partners keep access; stale guests lose it
LicensingSettings and manual review: all plans. Automatic reviews: Entra ID P2 or ID Governance
Last verifiedNovember 20, 2026, against Microsoft Learn
Works onBusiness BasicBusiness StandardBusiness PremiumE3E5 + automatic reviews

Green: every plan can limit who invites guests, restrict what guests see, and list and remove guests by hand. Blue: recurring access reviews that remove inactive guests automatically need Microsoft Entra ID P2 or Microsoft Entra ID Governance (Microsoft Learn).

In one minute

  1. Limit who can invite guests to admins and the Guest Inviter role.
  2. List every guest with their last sign-in date and who invited them.
  3. Remove guests who never accepted or haven’t signed in for 90 days or more, after a quick check with the owner.
  4. Repeat every quarter, by hand or with an automatic access review.

Guest account review is item ID-020 in our Microsoft 365 Security Audit.

What it is

What a guest account is, and why they pile up

When someone shares a Team, a SharePoint site or a file with a person outside your company, Microsoft 365 creates a guest account (a Microsoft Entra B2B user) in your tenant. The guest signs in with their own company or personal account, and your tenant keeps a record of them with whatever access they were given.

The problem is the second row. Microsoft notes that guest accounts become stale when collaboration ends and nobody cleans them up (Microsoft Learn). An invitation doesn’t expire (Microsoft Learn), and the partner’s own leaver process never touches the guest account in your tenant. Whoever controls that outside mailbox next, including an attacker, inherits the access.

Two settings decide how fast guests pile up

SettingDefaultSafer choice
Guest invite settings (who can invite)Anyone in the organization can invite guests, including guests and non-adminsOnly admins and users with the Guest Inviter role
Guest user access (what guests can see)Limited access to properties and memberships of directory objectsRestricted to their own directory object

Sources: Microsoft Learn, external collaboration settings and default user permissions.

Why it matters

A forgotten guest is a door you no longer watch

  1. Partner mailboxPhished, or the person left their company.
  2. Guest sign-inStill valid in your tenant.
  3. Quarterly reviewThe stale guest is removed before this happens.
  4. Teams and filesWithout it: old projects are readable.
  5. Invite more guestsIf anyone can invite, the attacker adds friends.

Drawing: where a guest review breaks the path.

Everyone

can invite guests by default, including guests themselves, unless you change the guest invite settings.

Source: Microsoft Learn
No expiry

on guest invitations: Microsoft states that an invitation of a user doesn’t expire.

Source: Microsoft Learn
180

days of inactivity: the threshold in Microsoft’s example multi-stage guest review, with the option to block and then delete guests who don’t respond.

Source: Microsoft Learn
30

days: an inactive guest removed by an access review is blocked for 30 days, then deleted, and can be restored for 30 days after deletion.

Source: Microsoft Learn

Ways to keep guests under control

ControlWhat it doesEffect
Restrict who can inviteOnly admins and the Guest Inviter role can add guests.Stops growth
Quarterly reviewGuests who no longer need access are found and removed.Removes stale access
Restrict guest directory accessGuests see only their own profile, not your staff list.Limits reconnaissance
Sharing link and site expiryGuest access to files and sites ends after a set time.Helps Covers files, not the account
Leaving it to project ownersOwners remove guests when they remember.Rarely happens

Documented research

Research · BeyondTrust, 2025

“Restless Guests” in Microsoft Entra

BeyondTrust researchers showed that a guest with the right billing role in their own tenant can create Azure subscriptions inside the tenant they were invited to and become Owner of them, without any explicit permission there. Microsoft described the behavior as intended.

Source: BeyondTrust · CSO Online · Hackread

We were not involved in this research. Its first recommendation matches the advice on this page: review guest accounts regularly and remove the ones you don’t need.

What we find in audits

What this finding looks like in our audit reports

These are real pages from our published sample reports, written for fictional companies. Click any page to open it full size. The viewer follows the finding from the technical report to the risk register and the roadmap.

Technical Security ReportSAMPLE · Veltrana Industries is a fictional company1 / 4
Technical Security Report, Page 16 · Finding F-15: The finding, ready to act on.
The finding, ready to act on. 1,206 guest accounts, 388 of them inactive for more than 90 days and 96 that never signed in, with no access review and guest invitations open to all members.

Your options

What each plan gives you

CapabilityBusiness Basic, Standard, Premium, E3E5 or Entra ID P2 / ID Governance
Restrict who can invite guestsYesYes
Restrict guest directory accessYesYes
List guests and remove them by handYesYes
Last sign-in date for each guestSign-in activity needs Entra ID P1 (Business Premium, E3)Yes
Recurring access reviews with automatic removalNoYes

Without automatic reviews, a manual quarterly review works fine for most small and mid-size companies: export the guest list, ask each owner about the guests on their projects, and remove the rest.

How to check it yourself

Count your guests and see who can invite, without changing anything

1. Who can invite guests today?

Look at Guest invite settings. If it says Anyone in the organization can invite guest users including guests and non-admins, anyone can add guests.

2. How many guests do you have, and when did they last sign in?

Add the Created date and Last sign-in columns, then download the list. Look for guests who never accepted the invitation, and guests with no sign-in for 90 days or more.

Read-only PowerShell: guests with last sign-in and creation date

Connect-MgGraph -Scopes "User.Read.All","AuditLog.Read.All"
Get-MgUser -Filter "userType eq 'Guest'" -All -Property DisplayName,Mail,CreatedDateTime,ExternalUserState,SignInActivity |
  Select-Object DisplayName, Mail, CreatedDateTime, ExternalUserState,
    @{n="LastSignIn";e={$_.SignInActivity.LastSignInDateTime}} |
  Sort-Object LastSignIn |
  Export-Csv .\guests.csv -NoTypeInformation

The command only reads accounts; it changes nothing. ExternalUserState shows PendingAcceptance for guests who never accepted. Reading sign-in activity requires Microsoft Entra ID P1 or higher.

How to configure

How to clean up guests and keep it that way, step by step

All plans

Limit invitations and remove stale guests

  1. Open Entra ID › External Identities › External collaboration settings.
  2. Set Guest invite settings to Only users assigned to specific admin roles can invite guest users, and give the Guest Inviter role to the people who manage partners.
  3. Set Guest user access to Guest user access is restricted to properties and memberships of their own directory objects.
  4. Send each project owner the list of their guests and ask: keep or remove?
  5. Block sign-in for the guests marked remove, wait two weeks for complaints, then delete them.

E5, Entra ID P2 or ID Governance

Automate the quarterly review

  1. Open Identity Governance › Access reviews › New access review.
  2. Review Teams + Groups, scope Guest users only, and tick Inactive users (on tenant level) only with your threshold, for example 90 days.
  3. Set the recurrence to quarterly and the reviewers to group owners.
  4. Under completion settings, choose Auto apply results, If reviewers don’t respond: Remove access, and Block user from signing in for 30 days, then remove user from the tenant.
  5. Run the first review and read the results before the next one is applied.

What your users will notice

Staff who used to invite partners on their own now ask an admin or a Guest Inviter. Active partners notice nothing. A guest removed by mistake can be invited again, or restored within 30 days of deletion.

How to undo it

Set the guest invite setting back, or restore a deleted guest from Entra ID › Users › Deleted users within 30 days. A guest whose sign-in you blocked can be unblocked at any time.

Proof and questions

How to prove it is fixed, and what to ask your IT provider

Evidence it is fixed

  • Guest invitations are limited to admins and the Guest Inviter role.
  • Guests can see only their own directory object.
  • No guest has gone more than 90 days without signing in, unless an owner approved it.
  • A dated record (or an access review) shows the last quarterly guest review.

Questions for your IT provider

  • How many guest accounts do we have, and how many haven’t signed in for 90 days?
  • Who is allowed to invite guests today?
  • When did we last remove guests, and who decided?
  • Do any guests hold admin roles or Azure access?
  • Who is told when a guest is added?

Signs it was already abused

If a guest account may have been misused, look for these signs

Red flags

  • A guest that was inactive for months suddenly signs in, especially from an unfamiliar country.
  • Guests inviting other guests, or a burst of new guest invitations from one account.
  • A guest holding an admin role, or owning an Azure subscription you didn’t create.
  • Large downloads from SharePoint or OneDrive by a guest account.
  • Guests added to Teams or groups that hold finance, HR or legal files.

If you see these, block the guest’s sign-in first, then keep the audit and sign-in logs before they expire. Our compromise investigation establishes what the account accessed, and the Microsoft 365 Evidence Clock shows how long those logs are kept.

Framework mapping

Where guest account reviews fit

FrameworkWhere it fits
NIST CSF 2.0PR.AA-01: identities and credentials managed; PR.AA-05: access permissions managed and reviewed
ISO/IEC 27001:2022Annex A 5.15 Access control; 5.16 Identity management; 5.18 Access rights
SOC 2CC6.1 logical access security; CC6.2 user registration and removal
CISA SCuBA (Entra ID)MS.AAD.8: guest access restricted; only the Guest Inviter role invites guests

Reviewed by

Written and reviewed by a practicing CISO

Ali Hassani, CISO and founder of OC Security Audit

Ali Hassani, C|CISO, CISSP

Ali has more than 25 years of IT and cybersecurity experience and holds the Certified CISO and CISSP certifications along with Microsoft and Cisco credentials. He leads every OC Security Audit engagement from Irvine, on-site across Southern California and remotely nationwide. Every Microsoft 365 audit is read-only.

FAQ

Frequently asked questions about guest accounts

Do guest accounts cost money?

Most guest use is covered at no charge, but some Microsoft Entra ID features for guests are billed by monthly active users. Removing guests you don't need is good hygiene either way.

Will removing a guest delete the files they shared with us?

No. Files a guest uploaded to your Teams or SharePoint stay where they are. The guest simply loses access.

How often should we review guests?

Quarterly is a good default. Microsoft's example multi-stage review uses 180 days of inactivity; many companies use 90 days.

What about guests who never accepted the invitation?

They are the easiest to remove: they never used the access. In Microsoft Graph they show as PendingAcceptance.

Do I need Entra ID P2 to review guests?

Only for automatic, recurring access reviews. Every plan can restrict invitations and remove guests by hand.

Can a guest be an administrator?

Yes, Microsoft notes that guests can still be added to admin roles. Check that none of your guests hold one unless there is a documented reason.

Next step

Know who outside your company can get in

Prevent

Microsoft 365 Security Audit

$3,500 fixed

About 200 read-only checks across sign-in protection, identity, guests, admin roles, email, sharing, data protection, logging and devices, for any tenant size, with four reports and a remediation roadmap.

Respond

Microsoft 365 & Azure Compromise Investigation

From $3,500

For when a guest account was used in ways you can’t explain: we establish what it accessed and what it changed.

Want to see the deliverables first? Open the Microsoft 365 audit sample report or browse all our sample reports.

Related reading: How to turn off Anyone links · How to restrict user consent to apps · How many Global Administrators you should have · Microsoft 365 identity, MFA and Conditional Access guide

Sources

Sources used on this page

  1. Microsoft Learn, Monitor and clean up stale guest accounts using access reviews
  2. Microsoft Learn, Configure external collaboration settings for B2B
  3. Microsoft Learn, Add and manage B2B collaboration users
  4. Microsoft Learn, Default user permissions in Microsoft Entra ID
  5. Microsoft Learn, How to detect and investigate inactive user accounts
  6. Microsoft Learn, Manage guest access with access reviews
  7. Microsoft Learn, Using multi-stage access reviews
  8. CISA, M365 Secure Configuration Baseline for Microsoft Entra ID (SCuBA)
  9. BeyondTrust, Restless Guests: the true Entra B2B guest threat model (2025)
  10. CSO Online, Microsoft Entra’s billing roles pose privilege escalation risks in Azure (2025)
  11. Hackread, Microsoft Entra design lets guest users gain Azure control (2025)

This guide is general information, not a guarantee of protection or legal advice. Microsoft changes its admin centers often: menu names and steps were checked against Microsoft Learn on November 20, 2026. Drawings are simplified and are not screenshots of Microsoft products. Sample findings come from fictional companies. Incidents are described as reported by the cited sources; OC Security Audit was not involved in them. Questions? Call 949-777-5567 or email support@ocsecurityaudit.com.