Forums

Change the current user from a listing of users

bcouvin 03 Apr, 2016
Hello,

I have a ccv5 listing of users. I would like to login as user when I click on the user name.
Initially, I was thinking an ajax which calls a php file to change the current user. But this lets me manage user object outside Joomla. I have no much experience on that.

Another point I was thinking is to use the "PHP functions" box to stay in Joomla. But I don't have documentation how to use this function.

Or another method is to call a chronoform when clicking on the row of the users listing. Could I use the feature "Joomla Login" from Chronoform to login as the selected user, without logout?

Do you have any experience ot method on that to help me to build this feature?

Thanks
Bertrand
GreyHead 04 Apr, 2016
Answer
1 Likes
Hi Bertrand,

What are you trying to do here? As far as I know you can't be logged in to the same Joomla! site as two different users at the same time. And you don't want a listing like this available to non-logged in users.

Bob

PS I did find a couple of plug-ins like this one that might let you do this.
bcouvin 05 Apr, 2016
Hi Bob,

Thanks for advising.

Initially, I would like to build delegation feature for "Team Leader" to make some tasks instead of Users. So "Team Lead" can "login as Users" could solve my issue.

But, after making some tests to log as user (even it works when calling CFv5 Component executing Joomla Login plugin feature, from Listing), it was not a solution as you can imagine. Just because, after login with user account, the "Team Leader" can not come back to its initial account as this user does not have enough the rights to log as user.

The solution is to stay as it is (not log as user), and give more access to "Team Leader" on objects they have to manipulate.

Bertrand
This topic is locked and no more replies can be posted.