Discussion Get Current User SID

  • Friday, August 03, 2012 2:01 PM
     
     

    Hi

    My application is running as a service i.e. in SYSTEM context and I need to find out the SID of the current user

    I am using "GetTokenInformation" to get the SID. My current user is "Administrator" but I am getting the SID of the "SYSTEM" S-1-5-18.

    Please help.

All Replies

  • Friday, August 03, 2012 2:12 PM
     
     

    >My application is running as a service i.e. in SYSTEM context and I need to find out the SID of the current user

    SYSTEM is the current user - you've said so yourself.

    Which other "current user" is it that you want?

    Dave

  • Friday, August 03, 2012 2:26 PM
     
     
    The user who has logged in (Administrator in my case)
  • Friday, August 03, 2012 4:11 PM
     
     

    >The user who has logged in (Administrator in my case)

    And if multiple users are logged in at the same time?

    If you explain what it is you're trying to achieve overall, someone
    may be able to suggest something.

    Dave