cnit
asked on
How can I display Distribution Group membership lists in Sharepoint?
We have several distribution groups set up, and I've been asked to add a page to our Sharepoint Site that contains lists of the distribution groups and lists all of the members. Is there a way I can do this dynamically so that I dont have to edit the page each time a new user is added or someone's role changes?
ASKER
I'm sorry but I'm not sure where I would put the code that you have supplied. Is this considered a Server Side Script, and if so does this article apply?
http://office.microsoft.com/en-us/sharepoint-designer-help/add-a-server-side-script-as-a-data-source-HA010119472.aspx
Right now, we are using a List to keep our group membership info, which is basically a big text box.
We are using Sharepoint Services 3.0 on Windows 2008 Standard.
Thanks
http://office.microsoft.com/en-us/sharepoint-designer-help/add-a-server-side-script-as-a-data-source-HA010119472.aspx
Right now, we are using a List to keep our group membership info, which is basically a big text box.
We are using Sharepoint Services 3.0 on Windows 2008 Standard.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you are using Server Edition, you can try this:
UserProfileManager profileManager = new UserProfileManager ();
MemberGroupManager groups = manager.GetMemberGroups();
foreach (MemberGroup group in groups)
{
foreach (string user in group)
{
///display user
}
}