I’m working to remove disabled users from both AD and AAD groups. The script I’m using (https://www.adaxes.com/script-repository/remove-all-group-memberships-for-a-user-account-s33.htm) successfully removes users from AD groups but fails when targeting AAD groups. Currently, our AD and AAD groups are not synchronized. We do have an Azure AD app registration in place for Office 365 licensing and mailbox management. Are there any additional prerequisites or configurations needed to enable group removal in AAD?

ago by (20 points)

1 Answer

ago by (308k points)
0 votes

Hello,

Yes, you need to register your Microsoft Entra domain in Adaxes. The following article will be helpful: https://www.adaxes.com/help/RegisterUnregisterManagedDomain. On step 5 of the guide, select Microsoft Entra domain. You can use the same app credentials as for the Microsoft 365 tenant registration. Once done, the script should remove accounts from both on-premises AD and Microsoft Entra groups.

Related questions

When using the remove all groups script from your repository. https://www.adaxes.com/script-repository/remove-all-group-memberships-for-a-user-account-s33.htm I need to have adaxes log ... ", "Information") What I get in the log is: What am I doing wrong?

asked Jan 17, 2023 by mightycabal (1.2k points)
0 votes
1 answer

When we deprovision a user the member of groups are deleted and the power shell scrips only runs as removing all memberships. I can't see what was removed. Is there a scrips I can run prior to removing those memberships that will e-mail what they are?

asked Oct 15, 2019 by meyerm (50 points)
0 votes
1 answer

Fresh install, new user. I've connected our local and cloud tenant. I've successfully added a user's cloud account as an admin in properties but when they try to login ... brute force protection and the error is still "The user name or password is incorrect. "

asked Jun 5, 2025 by hippodrome (50 points)
0 votes
1 answer

How to deal with approval requests in a AD and AAD environment? I have recently created a workflow where I log on as a AD user and request to be a member of a AAD group, ... of member works despite the initial request was based on a AD user and not a AAD user.

asked May 2, 2023 by Daniel (180 points)
0 votes
1 answer

Is it possible to surface Azure native AAD security groups within the Adaxes console in order to allow users to add themselves?

asked Dec 6, 2022 by sirslimjim (480 points)
0 votes
1 answer