# How to implement Impersonate (superuser impersonate another user)

**URL:** <https://forum.litium.com/t/how-to-implement-impersonate-superuser-impersonate-another-user/765>\
**Category:** Questions\
**Created:** [March 29, 2019, 9:04am UTC](https://forum.litium.com/t/how-to-implement-impersonate-superuser-impersonate-another-user/765 "2019-03-29T09:04:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik.jorpes](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@erik.jorpes](https://forum.litium.com/u/erik.jorpes)\
**Post date:** [March 29, 2019, 9:04am UTC](https://forum.litium.com/t/how-to-implement-impersonate-superuser-impersonate-another-user/765/1 "2019-03-29T09:04:08Z")

</div>

Hello Forum

Our customer wants to have an impersonate function. So, if a staff member belongs to the hosting organsiation, and have a role, lets call it impersonate, this user should be able to log in and act as an end user customer.

So, after search the forum and docs no hits on “impersonate”.

So-my question are:

- Is there some standard logic for this feature
- If not, how would we solve it? Glancing at the forumtopic [Login an account without password](https://forum.litium.com/t/login-an-account-without-password/169) . But first, we need to make sure that the impersonateUser log in and check the correct authority level, secondly, the user need to pick the person he/she would “act as”, third, being able to log in as that user and “populate the cart etc”

Any ideas here?

Thanks.

Litium version: 7

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [March 29, 2019, 9:20am UTC](https://forum.litium.com/t/how-to-implement-impersonate-superuser-impersonate-another-user/765/2 "2019-03-29T09:20:23Z")

</div>

- There is no standard feature supporting this (as far as I know and if there would be someone else will reply) .
- I guess one way could be to have a relational table that connects the actuall end user to the staff user with systemIds and then build the rest of the logics on that and override the login functionality.

---

<div class="post-metadata">

**Author:** ![MichaelNattfalk](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@MichaelNattfalk](https://forum.litium.com/u/MichaelNattfalk)\
**Post date:** [September 27, 2024, 7:16am UTC](https://forum.litium.com/t/how-to-implement-impersonate-superuser-impersonate-another-user/765/3 "2024-09-27T07:16:01Z")

</div>

Hi,  
Has there been any progress regarding this question in the later Litium releases? I’m facing the same challenges but for Litium 8, StorefrontAPI and the React Accelerator.  
In case there is no standard solution in Litium, has anyone implemented this earlier in Litium and if so, how did you solve it?  
Thanks!

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [September 27, 2024, 11:31am UTC](https://forum.litium.com/t/how-to-implement-impersonate-superuser-impersonate-another-user/765/4 "2024-09-27T11:31:49Z")

</div>

In the .NET API, you can use the `Litium.Security.SecurityContextService.ActAs` method to impersonate a user. However, the Storefront API does not have any endpoints for user impersonation. Please consider submitting this as a suggestion on [ideas.litium.com](http://ideas.litium.com).

---

<div class="post-metadata">

**Author:** ![MichaelNattfalk](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@MichaelNattfalk](https://forum.litium.com/u/MichaelNattfalk)\
**Post date:** [September 28, 2024, 12:39pm UTC](https://forum.litium.com/t/how-to-implement-impersonate-superuser-impersonate-another-user/765/5 "2024-09-28T12:39:17Z")

</div>

Thanks. Will do!
