Skip to main content
Nintex Community Menu Bar

Find all Managed Users

  • April 21, 2006
  • 2 replies
  • 17 views

Forum|alt.badge.img+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

Forum|alt.badge.img+11
  • Nintex Employee
  • April 21, 2006
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

Forum|alt.badge.img+1
  • Author
  • April 21, 2006
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