How to find sharepoint group exists of not using C#
How to find sharepoint group exists of not using C# server side code?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.


string groupName = "MyGroupName"; SPWeb web = SPContext.Current.Web; //Check if group exists in the web if (web.Groups.OfType().Count(g=>g.Name.Equals(groupName, StringComparison.InvariantCultureIgnoreCase))>0) { //Get the SPGroup by group name if exists SPGroup group = web.Groups[groupName]; }Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ramesh PalaniappanRank #370 · 6.8K reputationPosted Sep 15, 2016, 6:24 AM EDT