-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 | Description |
---|---|
impersonate |
Allows you as a superuser to impersonate another user account by either Username or UserID. |
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. |
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.
Are you getting any value out of this content and/or the source code here?
Please consider becoming a sponsor. Any amount is appreciated!
This project is donated to the DNN Community and the world by Upendo Ventures.
If you need support or would like to sponsor an enhancement for any of our open-source projects, please contact us.