userid from domain

  • Thread starter Thread starter Analizer1
  • Start date Start date
A

Analizer1

hi...looking for a example of
How to get the Users suid from a windows domain

thanks
 
Hi, to get the current windows user in c# is

System.Security.Principal.WindowsIdentity.GetCurrent().Name

Which will give you the name of the user running the current thread.

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
 
thanks...
but i have a userid and i need to look up the suid...of that user , Not
necessarly the current user

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top