Share via

Remove user access admin on dormant deleted account from subscription.

Bluw 0 Reputation points
2023-09-19T20:50:38.5866667+00:00

PowerShell script to remove dormant account with user access administrator role

Azure Role-based access control
Azure Role-based access control

An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.

Microsoft Security | Microsoft Entra | Other

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,391 Reputation points Microsoft Employee Moderator
    2023-09-20T00:18:00.8733333+00:00

    @Bluw ,

    If you use Powershell to delete the user, the user account isn't permanently deleted and will only get permanently deleted after 30 days have passed. There isn't a Powershell option for immediate permanent deletion. https://learn.microsoft.com/en-us/microsoft-365/enterprise/delete-and-restore-user-accounts-with-microsoft-365-powershell?view=o365-worldwide

    To permanently delete the user, you need to go to the Microsoft Entra admin center and sign in as a User Administrator > go to Identity > Users > Deleted users > select Delete permanently. https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/users-restore

    User's image

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar information.

    Was this answer helpful?

    0 comments No comments

Your answer

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