Thursday, September 15, 2011

SharePoint default members group

I recently had to try to determine the SharePoint Default Members Group of a particular site. In Site Actions->Site Permissions, you can go to a group and then click Make Default Group. What's bizarre is that there is no indication which group is default, at least not in the UI. The only way I could find is in PowerShell as follows:
$web = Get-SPWeb <myurl>
$web.AssociatedMemberGroup

or you can get the ID through the property bag at
$web.Properties["vti_associatemembergroup"]

Not sure which way is better, but either works for me so far. It would also be nice to see it in the UI.

1 comment:

  1. Hi,

    You prob have an answer for this now but we found 'web.AssociatedMemberGroup.Name' to return the correct default group, obviously where web is SPWeb.

    It does seem bizarre however how there seemingly no indication of the default group.

    Cheers,
    Bav

    ReplyDelete