How to find sharepoint group exists of not using C#
How to find sharepoint group exists of not using C# server side code?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

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]; }

Ramesh PalaniappanPosted Sep 15, 2016, 10:24 AM