Custom Field Type that Inherits SPFieldUser RRS feed

  • Question

  • I was wondering if it would be possible to create a custom field type that inherits from SPFieldUser and limit the lookup results to a specific AD OU.

    So the idea is that when creating a new list the user creates a new column of my custom field type and then enters in a property called Organizational Unit.

    The user should be able to create more than one column and specify different Organizational Units for each column

    We don't want to user Sharepoint groups because they will need to be maintained.

    I am aware of  stsadm -o setsiteuseraccountdirectorypath but this will not work because we want the flexibility of creating multiple columns in a list and point to different OUs. This command sets the entire site collection to a specific ou.

    I'm stuck at the point were I've created a custom field using VSEWss and inheriting from SPFieldUser but I just don't know how to override the population of the people picker list.

    Any help or direction would be greatly appreciated

    Tuesday, February 3, 2009 3:42 PM


All replies