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 3935448
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:49:51+00:00 2026-05-19T23:49:51+00:00

In my web application, I’d like to allow super users to impersonate other users.

  • 0
  • In my web application, I’d like to allow super users to impersonate other users.

My Question:

Is there a generally accepted design pattern that I could use to make this happen?

  1. Generally speaking, I can imagine that I’ll need to keep track of the current user and the impersonated user inside of the session.
  2. But you can understand that I’d like to minimize the complexity attached to this change.

  3. Incidentally, my application is an ASP.NET MVC 2 application, so if I could take advantage of any existing infrastructure, that would be great.

EDIT: I’m using Forms Authentication.

EDIT: I’ll also need to track the fact that a super user is acting on behalf of another user. I’ll need to do this for two reasons:

  1. Logging should log the fact that a super user acted on behalf of another user.
  2. It’s conceivable that the super user would want to return to the impersonation screen to “switch context” and impersonate another user.

EDIT: @Jordão proposed a mostly workable solution. My only concern is the following – If the super user (while impersonating another user) navigates to the home screen, and the top of the screen says ‘Hello [User]’, I want it to say ‘Hello [Impersonated User]’ as opposed to ‘Hello [Super User]’. And I’m afraid that @Jordão’s solution would make the implementation of this screen and other screens with similar requirements more complex.

  • 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-19T23:49:52+00:00Added an answer on May 19, 2026 at 11:49 pm

    Don’t impersonate other users, but give the super users enough authorizations and exclusive interfaces so that they can act on the other users’ data.

    If you then have logging or auditing data, you know which user (normal or super) acted on the data.

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

Sidebar

Related Questions

Our web application sends e-mails. We have lots of users, and we get lots
The web application I'm working on serves up images with URLs like /image?name=a.gif. Pages
Web application - C#, .Net, SQL 2k5. I recently used bulkinsert on an other
In web application, i am using regular expression for date like dd-mm-yyyy format for
My web application contains a text box for which I would like to restrict
My web application is similar to StackOverflow in that different users frequently edit the
My web application allow the user to upload their image to view, and I
My web application retrieves the location of an image from database. I'd like to
My web application stores attendance of employees daily.. How to design an attendance table
My web application allows end users to upload image. After the image is saved

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.