Skip to content

impersonate

Will Strohl edited this page Mar 25, 2022 · 1 revision

impersonate

Allows you as a superuser to impersonate another user account by either Username or UserID. This can be helpful for you or your team to troubleshoot issues on a website that may only be experienced by specific user accounts or types of user accounts. Once you run this command correctly, you'll be logged in as the other end-user without knowing their login credentials.

This has only been tested against the core DNN web forms login provider. Other login providers will not likely work.

Command

Command Description
impersonate Allows you as a superuser to impersonate another user account by either Username or UserID.

Arguments

The flags below can help you determine exactly how to use this prompt.

IMPORTANT: You may only use one of the flags at a time. Entering both or none will not process the impersonate command.

Flag Type Default Description
--username String (none) Enter the Username for the user account that you wish to impersonate. It may be a word or an e-mail address in most cases.
--userid Integer (none) Enter the UserID for the user account that you wish to impersonate.

Output

If successful, you'll see a message like below in the Prompt window.

Impersonation was successful. Please refresh the page. 

If an error occurs, it should be displayed to you in the Prompt window. If not, you'll find it in the Log4net log files.

Clone this wiki locally