If you are working as a supporting partner or a developer for an EPiServer website that has gated content and permissions for logged in users, you may need to provide access to various of them and check that everything is working properly. In most of cases, users used to say “This page is not accessible”, “my account is having issues with accessing the report”, etc. To support them and resolve the issue, you may need to request the user name and password. Once the issue is fixed, you need to ask them change their password.
The impersonate users module will help developers or administrators to run the EPiServer website as other user. They will be able to experience it exactly as the end-user, which will aid in giving support when there are questions, and troubleshooting when a user reports a problem that is difficult to recreate. It could even allow an impersonator to help a user complete an order.
This administration tool does the following:
- Allow an administrator user with the proper permissions to search for a user by various fields including username and email address.
- Select the user which will open a new window to the front-end of the site, setting session user values and cookies.
- Stop impersonating.
As a developer you will be able to switch features on/off if impersonating (thanks to David Knipe for the suggestion) by using these helper methods:
The module is available for download and installation as NuGet package.
PM> Install-Package Verndale.ImpersonateUsers
Build the solution and verify that the component was added correctly in the CMS, which is in the Admin View.