SA Developer .NET

Welcome to SA Developer .NET Sign in | Join | Help
in Search

Find out if a specific user in a specific group exists - WinXP

Last post 08-12-2008, 11:07 by grumpy. 2 replies.
Sort Posts: Previous Next
  •  07-17-2008, 19:58 13447

    Angry [:@] Find out if a specific user in a specific group exists - WinXP

    I need to find out if a user in the BUILTIN\Users group actually exists once an administrator has filled the user name applet.

    This is to prevent the admin operator from inadvertently adding faulty Logins to a SQL server instance.

    I have had no problems working with the security tokens etc. up to now, but I am defeated in finding out if a specific name such as 'JoeSoap' actually exists in the correct group.

    The other way to look at this would be that the admin user does not supply the name, but my security class actually picks up all the user names in the designated group and handles the logins automatically.

    I have studied the AtlSecurity sample but havent been able to find what I am looking for.

    Help is much appreciated.

  •  08-11-2008, 11:06 13955 in reply to 13447

    Re: Find out if a specific user in a specific group exists - WinXP

    I would suggest querying WMI to get this info.

    The following link should help:

    http://chakkaradeep.wordpress.com/2007/10/14/enumerating-users-using-wminet-and-c/

     

  •  08-12-2008, 11:07 13969 in reply to 13955

    Re: Find out if a specific user in a specific group exists - WinXP

    My thanks, The exact answer I needed.
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems