Find all Managed Users

  • 21 April 2006
  • 2 replies
  • 0 views

Badge +1
Hi,

I am trying to find all the managed users under the user that a K2 task is assigned to.

Basically, it looks like this:

Main User
|
-----> ManagedUser1
|
--------> ManagedUser2

I am trying to populate a dropdownlist with all the managed users that are underneath the main user. Including those being managed by a manageduser.

I have been trying to use the K2Rom's User.ManagedUsers, but a managed user in this case is not a user object, just a string that is the user name.

Is there a way in the K2Rom to load as user with just the FQN or Name? If not, is polling Active Directory the normal way of doing something like this?

Thanks,

-Jon

2 replies

Badge +11
Hi Jon,

There is unfortunately no out-of-the-box method in any of the K2.net object models which will achieve exactly this. You will have to use the standard .NET DirectoryServices to query AD and build the list yourself.

Regards,
Ockert
Badge +1
Do you happen to have a code snipet that does that? I sort of have it working, but I have never worked with AD before and it is taking me a bit longer then I would like. :D

Reply