Can't Delete Groups in Azure AD

Kevin M 11 Reputation points
2022-04-22T14:51:12.937+00:00

I am on a trial account. I created a custom domain and set up AD sync connector and imported all users and groups. A last minute change was given to me to change the custom domain from .com to .org so I was going through to remove the .com which has the users and groups associated to it. I was able to remove all the users in question, but the groups do not give me the ability to edit them. It's as if they are orphaned objects and since this is a trial account I am unsure how to get around this issue.

Any advice would be helpful.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,474 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Kevin M 11 Reputation points
    2022-04-22T21:36:30.357+00:00

    Ok, I way overcomplicated this:

    1. Reinstalled Azure AD Connect.
    2. Synced all items again to get things to where they were.
    3. Created a blank OU
    4. Pointed sync to only sync that one OU.
    5. The rest vanished on sync.

    Much cleaner and efficient. Should have known to do that in the first place.

    1 person found this answer helpful.
    0 comments No comments

  2. Biswajit Biswas 0 Reputation points
    2023-11-29T09:28:30.15+00:00

    Nice research Kevin; perfectly working on my test domain & I had only security groups.

    az ad group delete --group 'SubscriptionReaders' --verbose
    
    
    0 comments No comments