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

  • Home
  • SEARCH
  • 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 133161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:22:53+00:00 2026-05-11T06:22:53+00:00

How can i login without logout from current user to another Active Directory user

  • 0

How can i login without logout from current user to another Active Directory user with C#. ; 1-Getting new user’s access 2- doing my work and than logout with c# same way.

For example i am a user at blabla.com domain.I have logged in a Power User.But i need Admin Rights for something so i need to logout and change user to Administrator do my job and relogin with Power User again.I wanna do it with C#.

I heard something like that Impersonate User but i think this is not what i want.

Edited : I want login with another user and get this user’s permissions without logout from my current user in c#.

  • 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. 2026-05-11T06:22:53+00:00Added an answer on May 11, 2026 at 6:22 am

    Your question is not very clear. If what you want to be doing is querying/modifying AD, then t4zsan’s answer is correct.

    If you just need the other user’s groups/security permissions, then Impersonation is the way to go. This article will give you a good foundation on it.

    Caveats: The user you wish to impersonate must be able to logon to the machine you are running the code on. You can’t impersonate a user in another domain if that domain is not trusted. Nor can you impersonate a local user on another machine, obviously.

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

Sidebar

Related Questions

How can I login to AD without logout from current user and get new
I heard that on Windows you can login from a web browser to the
My goal is logout current session, then delete the running local user profile. And
I am working on a site where users can login to get more private
I currently have a site where different users can login, and depending on their
Having integrated merb_auth_password_slice as per the README, I can successfully login as redirect_after_login is
The Ubuntu startup/login sound can be very loud, but I do like having it.
I can't seem to find a control in a login view. The aspx is:
Similar to the XP login screen, in Flex 3, how can I display a
I am new to .aspx and now the thing is since i am doing

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.