NT Users Filter

Hi,

Iam using NT functions in c# using dllimport to get a list of NT users.
I want to filter the users based on the user name as there are a large number of users in the domain making it uncomfortable to scroll .

I would like to know what Nt function I have to call to filter the NT users by name.




Answer this question

NT Users Filter

  • Marco Otte-Witte

    What function are you using to get the names in the first place



  • Jimname

    Iam fetching back all the users using netuserEnum function.

    I have seen the windows security feature which allows the filter by name option. when we add a user in the advanced screen.

    just wondering if that would be possible using NT functions


  • Dawid Weiss

    Unless you are querying ActiveDirectory which should provide a method or an additional parameter to filter by you are probably going to have to do it on the client side. Retrieve everybody and then create an additional list which just has a reference to the users that match your filter pattern. Hope this helps.

  • NT Users Filter