To find associated groups in code you can either use the AssociatedGroups collection or access the individual groups as AssociatedOwnerGroup, AssociatedMemberGroup, or AssociatedVisitorGroup of an SPWeb object:
SPGroup owners = this.Web.AssociatedOwnerGroup; SPGroup members = this.Web.AssociatedMemberGroup; SPGroup visitors = this.Web.AssociatedVisitorGroup;
No related posts.
Posted under Developer
This post was written by furuknap on January 4, 2009
