Stump the Panel » Site Managers and Site Collection Managers

Show certain sites in MySite

(3 posts)
  1. mparter
    Member

    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.

    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.

    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.

    Is there anyway I can show sites that a student has access to under a specific path, e.g. http://intranet/class/class1, http://intranet/class/class2

    Ideally this would security trim to show only sites the student had access to.

    I'm up for creating a web part if someone can point me in the direction of sample code.

    Thanks.

    Posted 6 days ago #
  2. 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

    Posted 3 days ago #
  3. mparter
    Member

    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.

    Posted 2 days ago #

RSS feed for this topic

Reply

You must log in to post.