Listing users in my page was actually the easiest bit of the whole solution. In the ASP of my page, I added:
<SharePoint:ListView id="UserListView" ListID="UserInfo" runat="server"/>
And my page showed:
This is a SharePoint ListView, and the id and ListID appear to be ‘magic’ values. If set as above, the web part will display the users in the group specified by the MembershipGroupId GET parameter for the page. Try it – go to the normal users and groups pages, to to view the members of a group, and try replacing the integer ID of the group. (Not all are used)
So, that bit of magic shows me the list of users. In my page’s OnLoad event I also read the MembershipGroupId parameter and used that to read the name of the group we’re editting, which I then used in the PageTitle area. We’ll see this later.
(My Site is called ‘Blank’ and we’re editing the ‘Blank Members’ group)
That’s all I needed really, but as a bonus I’m also going to describe how I added the View Control. Continue reading “How I simplified the Users and Group UI – Listing Users”