Ask a questionAsk a question
 

AnswerQuestion about Active Directory and populating a lookup site column

  • Friday, November 06, 2009 8:54 PMkj2w2 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Ok so I learned earlier that 'lookup' type for a site column allows you to reference a Sharepoint 2007 list, pretty cool! Now my question is, can this be done with users from a specific AD group?  I suppose it can be done, just dont know where to exactly start.  Any suggestions?

    J
    • Edited byMike Walsh MVPMVP, ModeratorSaturday, November 07, 2009 9:48 AMtrailing ... removed from Title. Do this one more time and I will delete your posts
    •  

Answers

  • Friday, November 06, 2009 9:19 PMFrank.Cleynen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi kj2w2,

    I don't think it's possible out of the box but I think it's possible if you create a custom field and inherit from SPFieldLookup.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldlookup.aspx

    What exactly do you want to achieve with such a field ? Does the people field not fit in your plans ?

    Greets,
    Frank
    • Marked As Answer bykj2w2 Monday, November 09, 2009 1:47 PM
    •  

All Replies

  • Friday, November 06, 2009 9:19 PMFrank.Cleynen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi kj2w2,

    I don't think it's possible out of the box but I think it's possible if you create a custom field and inherit from SPFieldLookup.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldlookup.aspx

    What exactly do you want to achieve with such a field ? Does the people field not fit in your plans ?

    Greets,
    Frank
    • Marked As Answer bykj2w2 Monday, November 09, 2009 1:47 PM
    •  
  • Monday, November 09, 2009 1:47 PMkj2w2 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Well lo and behold!  Frank thanks for pointing me in the write direction.  Again all this sharepoint stuff is new to me so I'm not real sure (obviously) what is available. 

    To answer your question Frank, what I want to achieve is a drop down list filled with people who are in a specific AD group. I think I did it correctly and added a sharepoint 2007 group that matches with an AD group.  So a user gets assigned to a group in Active Directory then they should automatically get added to the equivalent Sharepoint group.

    J