Stump the Panel Topic: Show certain sites in MySite http://www.endusersharepoint.com/STP/ Paul Grenier, Lead Moderator en Sun, 19 Apr 2009 18:44:43 +0000 mparter on "Show certain sites in MySite" http://www.endusersharepoint.com/STP/topic/show-certain-sites-in-mysite#post-5838 Tue, 14 Apr 2009 03:45:09 +0000 mparter 5838@http://www.endusersharepoint.com/STP/ <p>It's a different site colllection, in a different web application o nthe same farm. I've managed to get it working by creating a web part to open up the site I want to start from and then using the GetSubwebsForCurrentUser method of the SPWeb object to enumerate all of the sites they have access to. </p> AutoSponge on "Show certain sites in MySite" http://www.endusersharepoint.com/STP/topic/show-certain-sites-in-mysite#post-5824 Mon, 13 Apr 2009 16:30:30 +0000 AutoSponge 5824@http://www.endusersharepoint.com/STP/ <p>If it's in the same site collection, you can just show all the sites and security trimming will take care of the rest. Otherwise you can look into the web services, I think you want /_vti_bin/Webs.asmx?op=GetWebCollection </p> mparter on "Show certain sites in MySite" http://www.endusersharepoint.com/STP/topic/show-certain-sites-in-mysite#post-5786 Fri, 10 Apr 2009 04:56:45 +0000 mparter 5786@http://www.endusersharepoint.com/STP/ <p>On the main intranet, class sites are available which selected lecturers are members of and the appropriate students are visitors of. The groups are all setup accordingly and associate with the class sites. </p> <p>What Id now like to do is show a list of all class sites that a student belongs to i ntheir MySite. My initial thought was to use the memberships web part but as the name suggests, this only seems to wrok if the user is a member of a site. The students in this case are visitors (with contribute rights to the bits they need to contribute to). So it appears that option is out of the window.</p> <p>My next thought was to use the CQWP but this requires the Publishing features enabled for each MySite (which I'd rather avoid) and it only works at site collection level so it's limited to the current users MySite.</p> <p>Is there anyway I can show sites that a student has access to under a specific path, e.g. <a href="http://intranet/class/class1," rel="nofollow">http://intranet/class/class1,</a> <a href="http://intranet/class/class2" rel="nofollow">http://intranet/class/class2</a></p> <p>Ideally this would security trim to show only sites the student had access to.</p> <p>I'm up for creating a web part if someone can point me in the direction of sample code.</p> <p>Thanks. </p>