Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3848134
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:39:25+00:00 2026-05-19T16:39:25+00:00

I wish to obtain the domain SID from a user account that has been

  • 0

I wish to obtain the domain SID from a user account that has been used to access my web page, but…

In some instances, you dont have access to the HttpContext object to call HttpContext.Current.Request.LogonUserIdentity.User.Value

All the static function is able to accept is a user-name as a string, and a domain-name as a string.

If the domain is left blank, it is amused that the user account name is within the same domain as the IIS server that the process is executing upon. :/

your help would be most appreciated as always.
Cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T16:39:25+00:00Added an answer on May 19, 2026 at 4:39 pm

    To get the a user’s domain, you can use LookupAccountName. In case you need a pinvoke sample, get it from pinvoke.net

    You pass in DOMAIN\UserName to the function. The LookupAccountName function will give you back the user SID and the domain name.

    I suspect that you don’t really need to know the domain SID. I would think the returned domain name should be enough for you. If you really want to know the domain SID, you can extract it directly from a the returned user SID.

    A user SID is always starting with a domain SID. For the details of how a SID structure looks like and how to extract the domain SID, please check here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to get a list of all strings that are used in a
For a more user-friendly environment, I wish to have the page extensions removed and
I wish to request data from a web service endpoint( say http://www.example.com ) using
I am using EWS and wish to obtain the conversation history folder from Office365
I've been looking around the System.Xml namespace, but don't see anything that would support
I wish to implement my software on a shareware basis, so that the user
Basically I wan't to obtain a string from the user, I have created a
I wish to send an email from my localhost machine (using PHPs mail function)
I wish to display content depending on the given role(s) of the active user
I wish to add a singleton method to a particular object. I wish that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.