How to Rename a SharePoint Group using PowerShell?

Requirement: On a marketing site, the site owner wanted to rename the “Marketing Members” group name to “Marketing Managers” as it makes more sense to him.

How to rename a SharePoint Group?

To rename a SharePoint 2013 user group, navigate to:

  • Site settings >> Site permissions >> Pick your target group
  • Click on “Group Settings” from Settings Menu
    how to rename sharepoint group
  • Supply a new name for your SharePoint permission group.
    sharepoint 2013 rename security group
  • Click on OK to save your changes.

Pretty straightforward, isn’t it?

Rename SharePoint group using PowerShell:

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

#sharepoint powershell change group name
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Variables
$SiteURL = "https://intranet.crescent.com/sites/marketing/"
$GroupName = "Marketing Members" 
$GroupNewName ="Marketing Managers"

#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() 

This PowerShell changes SharePoint group name!

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

Your email address will not be published. Required fields are marked *