Switch User Skin Object
This is a DNN Module that I have developed for use at work and would like to share it with the DNN community.
This module allows a user with Edit/Administrative access (this will not work for host/super user accounts) to have a second user account without Edit/Administrative access and switch between the two accounts. This is a skin object which can be placed anywhere on the skin. It will only display if the user has Edit rights for the tab. This logic is in the SwitchUserDisplay stored procedure and can be refined to just administrators is desired.
The way it works is by renaming the current user's login id and then redirecting through the AD authentication process. Since the username no longer exists, a new user will be generated. Switching back, the new user name will be renamed and the original user name will be restored. After another trip through the AD authentication process, the original user will match and will be the current user.
Since the second user is a full user, you can give it any Roles you want (while in Admin mode) and test the page as a user with those Roles.
* Note: For some reason the Module install is failing on the SQL. The SQL runs correctly through the DNN Host SQL interface or through SQL Manager. You may need to run the SQL sperately if it fails on install. If you have any thoughts on why this is happening, I would like to hear them...
I use a pure AD environment without any form login and have not been able to test this in other environments. Please test it in your test environment before putting it into production.
If you use this module, give me some feedback on how it is working for you or if you have any issues with it. Thanks.