How To Rename A SharePoint Group

Introduction

In this blog, we will explore how to rename a SharePoint group name using the browser and SharePoint PowerShell.

Requirement

On a site, a site owner wants to rename the "Approver" group name to "HR Approver” as it makes more sense to him. To rename a SharePoint 2013/2010 user group -

  1. Click on Site Settings gear >> Site permissions >> double click Approvers group.
  2. Click on "Group Settings" from Settings Menu.


  1. Replace Approvers with the HR Approvers name for your SharePoint permission group.



  2. Click on OK to save your changes.

Pretty straightforward, isn't it?

Rename SharePoint group using PowerShell

Renaming SharePoint groups can be achieved using PowerShell too. Here is my PowerShell script to rename a group in SharePoint 2013.

  1. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue  
  2.  
  3. #Variables  
  4. $SiteURL = "Site url”  
  5. $GroupName = "Approvers "   
  6. $GroupNewName ="HR Approvers"  
  7.  
  8. #Get site and Group objects  
  9. $Site = Get-SPSite $SiteURL  
  10. $Group = $Site.RootWeb.SiteGroups[$GroupName]  
  11.   
  12. if($Group -ne $null)  
  13.     {  
  14.         #sharepoint rename permission group  
  15.         $Group.name = $GroupNewName  
  16.         #Update the group  
  17.         $Group.Update()  
  18.         Write-host "Group Name has been updated!"   
  19.     }  
  20. #dispose site object  
  21. $site.Dispose()   

Note

The target audience cannot resolve SharePoint group name when renamed.

For example,

There seems to be an issue whenever you try to set certain audiences for Navigation Links (/_layouts/areanavigationsettings.aspx) — The selected SharePoint Groups are automatically removed from audiences when renamed.