How to Remove a Locked Guest Account in Azure?

Keith Allen 20 Reputation points
2025-02-09T01:59:29.22+00:00

There is one Guest Account visible on the Azure Home page.

I want to remove that Guest Account from our Azure account.

https://learn.microsoft.com/en-us/entra/external-id/leave-the-organization

In the process of removing the account via My Account -> Organizations -> "Other organizations you collaborate with", an error message appears stating, "Your account has been locked. Contact your support person to unlock it, then try again."

It appears that the holder of the guest account has disabled our account.

We have no relationship with the holder of this guest account.

What steps can be taken to force-remove that Guest account?

Microsoft Security | Microsoft Entra | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2025-02-10T15:06:51.0833333+00:00

    Hello @Keith Allen

    Thank you for reaching out to Microsoft Q&A.

    Contacting your Azure AD administrator likely someone with global administrator capabilities within your company is the first step. They will be able to manage user accounts, including guest accounts, with the required rights. If your account has been locked, the administrator can: Unlock it. Directly delete the guest account from the Azure AD tenant. An Azure AD administrator can utilize the portal to unlock a user's account if it is locked. https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/access-management/account-blocked-error-when-sign-in

    Here's how: Navigate to Users > All users in Azure Active Directory. Locate the user and choose them. If the account is locked, there will be a way to unlock it in the Account area.

    The Azure AD PowerShell module can be used to delete the guest account if you would like or need to do so using PowerShell with global admin permissions.

    Install-Module -Name AzureAD
    Connect-AzureAD
    $guestUser = Get-AzureADUser -Filter "UserPrincipalName eq 'guestuser@example.com'"
    Remove-AzureADUser -ObjectId $guestUser.ObjectId

    You can reach out to our support team. You can look into below article to get support numbers depending on your country.

    https://support.microsoft.com/en-us/topic/global-customer-service-phone-numbers-c0389ade-5640-e588-8b0e-28de8afeb3f2

    or creating a ticket through a different account:  https://learn.microsoft.com/en-us/microsoft-365/admin/get-help-support?view=o365-worldwide#phone-support

    I hope this clarifies things. Please contact us if you have any additional questions.

    If this answers your query, do click Accept Answer and Yes for "Was this answer helpful". And, if you have any further query do let us know.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.