Re: Retrieve all users of a user group

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Karsten Grombach (karsten.nogrombach_at_spam.tria.de)
Date: 09/09/04


Date: Thu, 9 Sep 2004 12:57:55 +0200


found the solution myself:
use the System.DirectoryServices.DirectorySearcher class and don't forget to
impersonate a user with sufficient rights.

"Karsten Grombach" <karsten.nogrombach@spam.tria.de> wrote in message
news:udJkwkblEHA.596@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> i'm trying to get all users from a user group, so that i can display the
> members in a webpart. i was hopping to find something in the api, but
until
> now to no avail. does anyone know how to get this done?
>
> to confuse me even more i've found the following definitions in the sdk:
>
> SPGroup Class
> The SPGroup class represents a cross-site group on a SharePoint Web site.
>
> SPRole Class
> The SPRole class represents a site group in Microsoft Windows SharePoint
> Services.
>
> what is the difference between a site group and a cross-site group? is
there
> a link to a user group?
>
> regards
> karsten
>
>



Relevant Pages