C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Changing SharePoint Group Ownership
WhatsApp
Lakshmanan Sethu Sankaranarayan
11y
4.4
k
0
0
25
Blog
Powershell commands are very powerful and its mainly used for sharepoint admistratve tasks. Below are the powershell commands to change the ownership of a SharePoint Group.
#Get the SPWeb Object
$web = Get-SPWeb http://mysites
#Find the Group
$group = $web.SiteGroups["CustomGroup"]
#Ensure that user is a part of authenticated users
$user = $web.EnsureUser("domain\username")
#Assign that user as the owner
$group.Owner = $user
#Update the Group
$group.Update()
Happy SharePointing :-)
Changing SharePoint Group Ownership
People also reading
Membership not found