Is there a way to limit the number of objects in an OU?

Is there a way to prevent creation of new objects in an OU once a pre-defined maximum has been reached? So, for example, I have an OU with delegation to create users but I don't want more than 100 users in that OU. Can I enforce this somehow?

  • You could trigger a Change workflow that would react to a new user create request and have a script activity within it count the objects in the target OU for the create ($Request.Parent).  If the number exceeds your threshold, the create could be discarded by having a "Stop" in the workflow before the "Create User" step.