SharePoint 2010: Membership webpart and alternatives



SharePoint provides an out-of-the-box membership webpart which gives you a list of all the sites you are member of. However in many (to be more precise, most) practical scenario this webpart cannot be used.

The problem with this webpart is that it will only list the sites you are explicitly included in the "~Members" group for the site (where ~ is your site name).

It also does not work with the AD groups. If you are added to members group using AD group, the site will not be listed in the membership webpart.

One good alternative is using search. You can simply search for “contentclass:STS_Web”(for searchin sites) or “contentclass:STS_Site”(for searching site collections).

Rather than asking users to go and search these terms, you can simply create link on your site like:



These search results will only provide the list of sites/site collections where user has access to. It does not depend on the how you have access to the site/site collection. You may be explicitly added to any SharePoint group or you get access through AD group.
To decide whether to use STS_Web or STS_Site, will depend on how you have defined the site structure.

No comments:

Post a Comment