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 -
- Click on Site Settings gear >> Site permissions >> double click Approvers group.
- Click on "Group Settings" from Settings Menu.
- Replace Approvers with the HR Approvers name for your SharePoint permission group.
- 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.
- Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
-
- #Variables
- $SiteURL = "Site url”
- $GroupName = "Approvers "
- $GroupNewName ="HR Approvers"
-
- #Get site and Group objects
- $Site = Get-SPSite $SiteURL
- $Group = $Site.RootWeb.SiteGroups[$GroupName]
-
- if($Group -ne $null)
- {
- #sharepoint rename permission group
- $Group.name = $GroupNewName
- #Update the group
- $Group.Update()
- Write-host "Group Name has been updated!"
- }
- #dispose site object
- $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.