More in this section

Forums / Developing with Sitefinity / Sitefinity 6.x Impersonation

Sitefinity 6.x Impersonation

3 posts, 0 answered
  1. Peter
    Peter avatar
    6 posts
    21 Jan 2013
    15 May 2013
    Link to this post
    Is there a way either through UI, or api calls to impersonate a user in sitefinity 6?
  2. Steve
    Steve avatar
    3037 posts
    03 Dec 2008
    16 May 2013 in reply to Peter
    Link to this post
    Nope :/

    We need this too...ability to see what a specific user sees without logging them in.
  3. Kaloyan
    Kaloyan avatar
    272 posts
    06 Feb 2017
    18 May 2013
    Link to this post
    Hello Peter,

    There is no inbuilt impersonation functionality in Sitefinity, but this can be achieved trough programmatically authentication as certain user with the Security API. The easiest way to archive this is to use the following method:

    UserLoggingReason AuthenticateUser(string membershipProviderName, string userName, bool persistent, out User user)

    This method contains a few overloads and you can pick one depending on your scenario.
    This can be used in a custom control on a page where the admin user will log into user accounts and access Sitefinity authenticated as them.

    All the best,
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
3 posts, 0 answered