Joomla Tutorials and Blog Posts

Change Accounts with the Master User Joomla Plugin

January 4, 2012 | Written by Ed Andrea

master user pluginThe Master User plugin is for Joomla administrators and allows you to login as any user, but using your own password. You can mimic anyone else's login and see exactly what they see.

This allows you to check what your users see when they login to your site and allows you to easily troubleshoot problems for your users.

Here's how to use the Master User Plugin:

Step 1. Download and install

tutuploadsStep_1._Download_and_install_7cc810b744a8bfdb7a410f13a29688ef.png

You can download the extension by starting at the Joomla Extensions Directory. You will need to register on the developer's site.

Go to Extensions > Extension Manager > Browse > Upload and Install.

Step 2. Enable the plugin

tutuploadsStep_2._Enable_the_plugin.png

Go to Extensions > Plug-in Manager > Enable the plugin. Click on the red circle changing it to a green check mark.

Click the name of the plug-in and open the configuration page to adjust the options.

If you have a small site and you are the only administrator, make sure Yes is selected in the Enable All Administrators field. The defaults will be OK unless you really want to tighten security.

Step 3. Configure IP restrictions

tutuploadsStep_3_1d24b5790908bcdf325e6942cceae467.png
  1. Choose to restrict by IP address or not.
  2. List valid IP addresses if you chose to restrict access. Otherwise leave this blank.
  3. Choose "Yes" for Enable all administrators unless you have more than one administrator. If you check "No" then configure the Master User Ids
  4. List the user ID's of administrators who are allowed access.

Note on IP addresses: The IP addresses are the local IPs of the individual administrator. To find out what your IP address is, go to http://whatismyip.com and your ip address will be posted. That's the value you put in here. If you have administrators in other locations, you will need to get them to tell you their addresses. There are plugins you can add to Joomla to capture IP addresses, but presumably for this you only need a few so it would be easiest just to ask the users.

tutuploadsmedia_1325637357991.png

To find the administrator user ids go to Users and the ID column on the right side of the list.

Step 4. Set the Advanced Options

tutuploadsStep_4._Set_the_Advanced_Parameters.png

Expand the Advanced Options pane and you can assign permission to various groups. By default super administrators and administrators are allowed. You can change this in the dropdown. You only need to do this if you want something other than the defaults.

Step 5. Testing Master User

tutuploadsStep_5_61cb82e5d0d026e94a37ff153969721b.png

With seven user groups, plus the ability to add custom, it's a good idea to set up samples for testing and honing your skills. I set up seven users each named for the group they represent, each with an easy to remember password that is not the same as the Super User password. There is no real reason to do this other than learning and practice. It's also a good idea to test your settings if you set restrictions in the plug-in manager.

tutuploadsmedia_1325709392930.png

On your home page login as any user other than the superadministrator, but use your superadministrator's password. You will now be able to log in as any user, using your own password. You can keep this privilege for yourself, or allow others to do the same by changing the plugin parameters.

During development of complicated sites with many user group and varied permissions this is invaluable.


 

Comments  

 
#1 Spider 2012-01-06 10:19
Great tutorial.. one thing I didn't 'get' was the addition of IP address...:

Note on IP addresses: The IP addresses are the local IPs of the individual administrator. To find out what your IP address is, go to whatismyip.com and your ip address will be posted. That's the value you put in here.

Where is 'here'... in the large box? I will add it there...

For each of the groups, the log in will become the 'group name' (example: manager) followed by the entry of my own admin password? Again, I am making a presumption here...

I am sure it is clear to others; but just wanted to clarify.

Thanks again OS Training....

Tony
 
 
#2 Spider 2012-01-06 10:38
Hi Again:
Just tried the plugin... It even worked when on enabled! I don't have confidence in this right now and will wait for other comments and testing...

Tony
 
 
#3 Spider 2012-01-06 10:39
Quoting Spider:
Hi Again:
Just tried the plugin... It even worked when on enabled! I don't have confidence in this right now and will wait for other comments and testing...

Tony

That should read:

'when NOT ENABLED'... Cheers,
Tony
 
 
#4 edandrea 2012-01-06 14:58
The IP address goes into the box in step three labeled "Valid IP Addresses"

Seemed clear when I wrote it, but I can see how it could be confusing. I'll try remember to be more specific.

Thanks
Ed
 
 
#5 Spider 2012-01-06 15:04
Hi Ed: Thanks for responding... Is the purpose of this to ensure the person logging in is at their own 'IP' address... If I go to MacDonald's for a burger, would it disallow the login?

Tony
 
 
#6 iowawebco 2012-01-12 01:36
Hi Tony,

Yes, it is.

Yes, if you take your laptop and go to any new network your IP will change. If you're using a mobile devise that doesn't apply as far as I'm aware.

Kind regards,
Nick
 
 
#7 iowawebco 2012-01-12 01:37
Hi Tony,

It shouldn't work when it's disabled. Please double check.

Kind regards,
Nick
 
 
#8 Spider 2012-01-12 01:45
Hi Nick:

Yes, I will try again. Got busy with another issue! Have you used Breezing Forms at all... I am trying to migrate my forms from 1.5...

Anyhow, I will try the Master User plugin again... and will report.

Cheers,

Tony
 

Add comment