views:

18

answers:

1

I'm gonna build a webpart for creating user in active directory.

i want to add created user to an organizational unit if the organizational unit exist.

how i can do that?

A: 

Basically, you need to bind to the OU in question, and then call .Children.Add() to add the new user to that OU.

See this MSDN documentation for details:

marc_s