Implement impersonate functionality for a super user.

Cristhian Caldas asked on October 13, 2016 00:58


I need to implement in my CMS site a super user wich can exchange users for navigate along the site even executing the checkout process in a shopping cart. I saw in CMS Admin page the impersonate option for displaying the site according to the selected user (

Is there exist any Kentico API method for implement the impersonate funtionality, or exist the option of enable the impersonate for an user (in my case for a super user)?


Correct Answer

Jan Hermann answered on October 13, 2016 08:09

It's CMS.Membership.AuthenticationHelper.ImpersonateUser method:

public static void ImpersonateUser(
    UserInfo ui,
    string redirectionUrl = null,
    bool forceRedirect = true
2 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.