I need to programmatically, using C#, add the SharePoint Web Part “Site Users” to a page.
I know how to add web parts but how do I get the “Site Users” web part from Share Point? I do not know how to instance it.
Thanks for helping.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer turned out to be the Members Web Part.
By simply setting “Display Type” to “WebUserGroups” the web part lists the groups and users on the site.