Click here to Skip to main content
15,881,424 members
Articles / Web Development / ASP.NET

Update SharePoint UserInfo List with More Active Directory Info

Rate me:
Please Sign up or sign in to vote.
4.45/5 (5 votes)
19 Mar 2009CPOL2 min read 59.6K   371   16  
Shows how to write a job that updates the UserInfo list with more Active Directory information.
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace Mullivan.SharePoint.WebParts
{
    public class LibNavLink
    {
        public LibNavLink()
        {
            this.Id = Guid.NewGuid();
        }

        [XmlAttribute("id")]
        public Guid Id { get; set; }
        [XmlAttribute("title")]
        public string Title { get; set; }
        [XmlAttribute("listUrl")]
        public string ListUrl { get; set; }
        [XmlAttribute("displayField")]
        public string DisplayField { get; set; }
        [XmlElement("Query")]
        public string Query { get; set; }
    }

    [XmlRoot("Links")]
    public class LibNavLinkCollection : List<LibNavLink>
    {
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions