November 9, 2020

Enabling Verndale's Verndale.ImpersonateUsers package in Episerver's Foundation CMS Application

I recently needed to enable user impersonation for a prospective customer who wanted a better way to preview personalization for more complex scenarios where the in-editor Visitor Group Preview wasn't quite sufficient. This is for a portal, where every user would be authenticated, so a fantastic workaround would be to simply impersonate a user. This may not solve for behavioral personalization, but theirs is primarily built around roles and profiles.

For example, what if we want to preview the home page as a member who belongs to the Human Resources team AND who also happens to be a new hire (< 30 days). If you had a visitor group that required both, and targeted it, that might work. But in this case, these are two separate visitor groups.

My chosen best option was to use a tool built by one of Episerver's best partners, Verndale. Aptly named Verndale.ImpersonateUsers. It's worth mentioning that Verndale has put a LOT of really nice add-ons in the marketplace and they're worth checking out.

There were a couple of bumps getting impersonation to work in Foundation, so here's how to get up and running.