Forum Discussion
Automatique or quick Security groups replacement on SharePoint sites
are you referring to SP On-Premise or Online ?
I'm confused because the label says Online but you were describing a migration from domain A to domain B.
- ben_guesJun 13, 2022Copper Contributor
Hi,
actually it was an active directory migration not Sharepoint
We've migrated the users account from a domain to another and now we need to deal with the security groups. (used by shrepoint online)
thanks
ben- mr_w1nst0nJun 14, 2022Iron Contributor
ben_gues Ok thanks for the clarification.
Based on my experience:
If you just need to rename a SharePoint Group you can do it via PowerShell.
You have a sample here as a starting point: https://www.sharepointdiary.com/2018/02/change-group-name-in-sharepoint-online-using-powershell.html
If you want to rename an AD security Group (Not SharePoint Group) you have to remove and re-add this specific group to get the name reflected in the system (SharePoint use Security Identifier and not the name of the AD Group)
To speedup the overall process I think ShareGate can still help because Online to Online is a supported scenario but the best way is to target a Test AD Security group and see how the mapping get handled by the tool. Last chance is to create a mapping file and automate the remove/re-add using PowerShell
- ben_guesJun 15, 2022Copper ContributorMany thanks I will check this, I'm also checking if the something could be done with Power Automate (Flow).
a condition saying
If a user read a file > add it to the Security group A
If a user change à file > add it to Security group B
Keep you posted if this works