1
Vote

User Information List for WSS 3.0

description

Cool webpart for MOSS site. Any thoughts on how a version of this webpart would query a WSS 3.0 site's "User Information List".

comments

dhollas wrote Jul 25, 2008 at 11:47 PM

employeeList = new List<Details>();
        try
        {
            // Open current site
            using (SPSite spSite = new SPSite(UrlUtil.SiteUrl(this.Page.Request)))
            {
                SPWeb web = site.RootWeb;
                SPList userList = web.Lists["User Information List"];
                foreach (SPListItem user in userList.Items)    
                {
                    Details dt = new Details();
                    dt.AddProfile(user, this.Page.Request);

                    if (dt.TrimFullName != String.Empty)
                        employeeList.Add(dt);
                }
            }

wrote Feb 14, 2013 at 6:30 PM