Azure AD - remove disabled users from groups

Venkatesh M 66 Reputation points
2022-06-01T10:02:08.257+00:00

Domain = Hybrid Environment.

Disabled users are in a OU and these users are members of groups.
Groups are created in Azure AD.
How to remove the disabled users from these groups using PowerShell?

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 35,621 Reputation points Microsoft Employee Moderator
    2022-06-01T10:28:20.093+00:00

    @Venkatesh M

    Thank you for reaching out to us. As I understand you are looking to remove on-premise disabled users from Azure AD groups ( if my understanding is incorrect, please let me know ).

    You can refer to this article https://arconnetblog.wordpress.com/2018/12/07/clean-azure-ad-groups-for-disabled-users/ (similar requirement as yours cleaning up of on-premise disabled users from Azure AD Group).

    Note: Please test the script in test environment before implementing in production.

    Let me know if you have any further questions.


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.