Tag Info

New answers tagged

2

SPUser.Groups returns a collection of SPGroups which the user is a member. Here is the documentation link


0

Do something like this..(I have not tested..pls debug and test) List<string> lstgroup=new List<string>(); SPGroupCollection groupCollection = web.Groups; foreach (SPGroup grp in groupCollection) { if (grp.ContainsCurrentUser) { lstgroup.add(grp); } }



Top 50 recent answers are included