3 minutes reading time (620 words)

Yammer - Name is already in use by another community

How to fix Yammer error - Name is already in use by another community, user, or guest. Permanently delete (purge) soft-deleted Yammer Office 365 groups and SharePoint sites

Yammer error - Name is already in use by another community

 Yammer error when trying to create a new group

Name is already in use by another community, user, or guest. Please select another name.

Steps to fix: Yammer error - Name is already in use by another community

1. Remove Office 365 groups with the same name as the community

Office 365 admin center
Teams & Groups - Active teams & groups 

Check for active groups with the same name

Delete Yammer Office 365 groups using PowerShell 

Get Yammer M365 groups using PowerShell Get-UnifiedGroup

# Connect to exchange online
Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com

# Get Yammer unified groups
Get-UnifiedGroup -ResultSize Unlimited | ? {$_.GroupSKU -like "*Yammer*"} | ft

# Get Yammer unified groups, select display name
Get-UnifiedGroup -ResultSize Unlimited | ? {$_.GroupSKU -like "*Yammer*"} | Select DisplayName  

Copy the group Display Name

Delete Yammer M365 groups using PowerShell Remove-UnifiedGroup

# Remove one M365 group using Display Name
Remove-UnifiedGroup -Identity "DISPLAY NAME" -Confirm:$false

# Delete ALL Yammer M365 groups
$YammerGroups = Get-UnifiedGroup -ResultSize Unlimited | ? {$_.GroupSKU -like "*Yammer*"}
ForEach ($YammerGroup in $YammerGroups ) {
Remove-UnifiedGroup -Identity $YammerGroup.DisplayName -Confirm:$false
} 

2. Permanently remove (purge) soft-deleted Office 365 groups

Office 365 admin center
Teams & Groups - Deleted groups

In the Office 365 admin center, we can see a deleted group with the same name, but there is no option to permanently remove it

Permanently remove soft-deleted Office 365 groups using the Azure Portal

We can easily permanently remove (purge) the soft-deleted group using the Azure Portal

Azure Active Directory - Groups - Deleted groups
Delete permanently

Permanently remove soft-deleted Office 365 groups using PowerShell

Get soft-deleted Office 365 groups using PowerShell Get-AzureADMSDeletedGroup

# Connect to Azure AD
Connect-AzureAD

# Get all soft-deleted groups
Get-AzureADMSDeletedGroup

# Get soft-deleted group by name
Get-AzureADMSDeletedGroup -SearchString "Team Leaders" | fl 

Copy the group Id

Permanently remove soft-deleted Office 365 groups using PowerShell Remove-AzureADMSDeletedDirectoryObject

# Remove soft-deleted Office 365 group by Id
Remove-AzureADMSDeletedDirectoryObject -Id 3a83e56a-bea5-4932-b953-dafc4ccb704c

# Remove all soft-deleted Office 365 groups
$deletedgroups = Get-AzureADMSDeletedGroup 
ForEach ($deletedgroup in $deletedgroups){
Remove-AzureADMSDeletedDirectoryObject -Id $deletedgroup.id
} 

3. Remove soft-deleted Yammer SharePoint sites using PowerShell

SharePoint admin center
Sites - Deleted sites

Copy the SharePoint site URL

Install SharePoint online PowerShell module

# Install SharePoint online PowerShell
Install-Module -Name Microsoft.Online.SharePoint.PowerShell

# Update SharePoint online PowerShell
Update-Module -Name Microsoft.Online.SharePoint.PowerShell 

List SharePoint Deleted sites using PowerShell Get-SPODeletedSite

# Connect to SharePoint online
Connect-SPOService -url "https://planetxpressnet-admin.sharepoint.com"

# Get Sharepoint Deleted sites
Get-SPODeletedSite 

# Get deleted Sharepoint site by URL
Get-SPODeletedSite -Identity https://planetxpressnet.sharepoint.com/sites/SocialClub | fl 

Copy the Site URL

Permanently remove SharePoint soft-deleted sites using PowerShell Remove-SPODeletedSite

Permanently remove one SharePoint site

Remove-SPODeletedSite -Identity https://planetxpressnet.sharepoint.com/sites/SocialClub 

Permanently remove ALL SharePoint sites

# Permanently remove all soft-deleted sites
Get-SPODeletedSite | Remove-SPODeletedSite -Confirm:$false 

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Saturday, 23 September 2023
You can help support this website by buying me a coffee!
Buy Me A Coffee