Any way to automatically purge 'stale' Guest accounts from Azure AD?

OneTech IT 141 Reputation points
2022-03-17T16:04:27.573+00:00

We have a large number of Azure AD Guest accounts, that haven't been used for many months (sometimes over a year) and I'd like to be able to 'purge' them all from the system in a single pass.

Is there a method for doing this? Or would I literally have to remove them one at a time?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,660 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,638 questions
{count} vote

Accepted answer
  1. James Hamil 22,081 Reputation points Microsoft Employee
    2022-03-22T20:02:50.807+00:00

    Hi @OneTech IT , I'm really sorry I misunderstood your question! For stale guest user accounts, there's a really good writeup here by Darren Robinson. The method is very similar to what I posted above. If you have any questions or if there's any disconnects within the document please let me know. I can help you further if so!

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. OneTech IT 141 Reputation points
    2022-03-17T22:42:43.957+00:00

    How does this relate at all, to stale GUEST USER accounts?

    1 person found this answer helpful.
    0 comments No comments

  2. OneTech IT 141 Reputation points
    2022-03-23T02:37:57.92+00:00

    Hi James,

    Thank you so much. That write up is exactly what I'm looking for!

    Best,

    OneTech IT

    1 person found this answer helpful.
    0 comments No comments