How to login as a user from Admin account without password?

I have users and admin and as part of the function of admin, it is required to login as a user for time to time for troubleshooting etc, how can I go about switching to user view (without duplicating the whole user section) from an admin and by pass the password?
We have a SHA512 hash and wondering if there is a way?

Can you give a bit more info on what you have and what you’re looking to achieve? It sounds like users don’t need a password at all but I can’t believe that’s the case.

I think he’s trying to allow an admin user to impersonate another user.

I have done this before by using session variables server-side. Upon login, set a session ‘userid’ value to the identity of the logged in user. Use this session value to retrieve user information etc. for the page, rather than the identity value.

To switch user, check access is allowed using a query/restrict step to check for admin privileges, before setting the session ‘userid’ value to the user they want to impersonate.

1 Like

Thanks @sitestreet and @bpj!
@bpj, yes, you are entirely correct! It’s exactly what I am trying to achieve and I did think of Session variables.

I am just not sure where to start. Are you able to provide any further assistance?

The key thing is to use a session value for queries that deliver user info to the page, rather than the value from an identify step. That way, the change of session value (and a reload of page data) is all you need to switch user.

1 Like

Thanks @bpj. I will take a look and re-read your instruction and have another go at it.