Accidently deleted Azure security group, but unabe to restore it

Manohar 11 Reputation points
2022-04-21T22:07:55.447+00:00

A security group has been deleted from the Azure portal, since it is a security group, there is no option to restore it from Deleted groups. Is there any way to restore it. If restoration is not possible at least the info of users under the group Membership 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.
20,451 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,601 Reputation points
    2022-04-25T08:42:26.227+00:00

    Hello @@Manohar ,

    Thanks for reaching out.

    Yes, as @Carlos Solís Salazar mentioned, Azure AD Security Groups CANNOT be restored as they are not supported for soft-deletion today so any deletion is a hard delete. We are working on a feature to make it self-service. In the meantime, it is possible to recover some data with best effort to get all object IDs of group memberships by contacting MS support so that you can create a new group and use the following PowerShell script to add old group memberships to the new created group.

    Import-CSv -Path “C:\temp\Group_members_Object_ID.csv” | ForEach { $UPN=$_.MemberId  
    add-MsolGroupMember -GroupObjectId “Object_ID_Of_The_New_Group” -GroupMemberObjectId $UPN -GroupMemberType User}  
    

    Hope this helps.

    -----
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    2 people found this answer helpful.

  2. Carlos Solís Salazar 17,771 Reputation points MVP
    2022-04-21T22:19:01.05+00:00

    Hi @Manohar

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    Unfortunately, there is no soft delete for Security groups, only for MS 365 Groups.

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.


    1 person found this answer helpful.

  3. Manohar 11 Reputation points
    2022-04-21T22:22:51.99+00:00

    Hi @Carlos Solís Salazar ,

    Oh okay, Thanks!!
    Is there any way raising a support case can help?

    0 comments No comments

  4. Carlos Solís Salazar 17,771 Reputation points MVP
    2022-04-21T22:29:27.2+00:00

    @Manohar

    I don't think that Microsoft support can restore the security group, but you can try, you won't lose anything do in it.

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.


    0 comments No comments