Best practice forum (Archived)
Log in as capability with limitations?
Hi John
If you look at the Site manager role there are some permissions Edit user profile - this capability can only be applied in a system context. I prevented this and applied to user in system context.
I did do this but when I logged in as a user I was able to edit the users profile. I think what happens when you login as the user you receive all of the permissions of that user so if the user has Edit own profile allowed then this allows the profile to be edited. So to achieve this the authenticated user would need Edit own profile prevented which may not be suitable.
Another possibility when using login as , depending on how accounts are created is to lock user fields so they can't be changed by the user under Plugins > Authentication > Manual accounts.
regards
What permission allows for an admin to search for users under Site Administration > Users > Browse list of users?