Notifications
Clear all

[Solved] Allow non Administrator to edit 'Forum - Usergroup' field in user-edit.php

14 Posts
3 Users
1 Reactions
2,767 Views
Posts: 5
Topic starter
(@tony-robertsacer-org)
Active Member
Joined: 2 years ago

Hi,

We have distributed user management for our site, and have created a WordPress role for user management separate to the WordPress Administrator role.

This role works fine for user management in general, including for a couple of other plugins, but we can't determine how to allow users with this role to edit the 'Forum - Usergroup' field in user-edit.php. It's greyed out.

We tried creating a 'Manager' usergroup and checking all boxes without success.

Is there a specific capability or other setting we can adjust to unlock this for users without the WordPress administrator role?

Tony

13 Replies
Chris
Posts: 3627
(@chris)
Famed Member
Joined: 3 years ago

Hi @tony-robertsacer-org,

You have enabled wpForo Usergroup synch, option, that's why you cannot change the Usergroup, however you can change that user's User Role from the same page, and the usergroup would be automatically changed.

Posts: 5
Topic starter
(@tony-robertsacer-org)
Active Member
Joined: 2 years ago

Hi Chris, thanks very much for your reply. We actually haven't got the Usergroup sync enabled (see attached) becuase we do have quite a lot of roles for our particular use case, and the dropdown is unlocked for users that have the WordPress administrator role (also see attached).

What we are hoping to do is have this field enabled on the edit-user.php page so that our non Administrator role users that are user managers have the ability to manage users can also change the forum usergroup.

Is this possible do you think?

Tony

1 Reply
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@tony-robertsacer-org,

You can Just enable "Dashboard – Can edit member" Option from the Usergroup Options, For Example Enable it for Moderators, then those Moderators can edit the Member usergroup from the User's wpForo Profile > Account Tab.

Posts: 59
 mhit
(@mhit)
Estimable Member
Joined: 2 years ago

Hi Chris,
This seems to be the same problem I am facing: It is not possible for any user to edit Usergroup, except for the WP Admin user role....
Could you let me know if I can add a wpForo 'capability' that is used for editing wpForo usergroups?

9 Replies
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@mhit,

Checking that part. Will let you know.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@mhit,

Primary usergroup from the front end can be changed only by default admin, other users can only change from the dashboard. 

 mhit
(@mhit)
Joined: 2 years ago

Estimable Member
Posts: 59

@chris Thanks! For the primary usergroup this is no problem, but the second usergroup is a problem. It seems to be impossible to change the second usergroup by another forum admin, unless he has a WP Admin user role (even a cloned WP admin user role does not solve this problem).

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@mhit,

Only wpForo Default Admin usergroup can manage the Users Secondary Usergroups from the Front-End.

 mhit
(@mhit)
Joined: 2 years ago

Estimable Member
Posts: 59

@chris Thanks for your reply.

It still does not seem to be possible because of the following two reasons:
- The wpForo Default Admin usergroup still cannot manage Users Secondary Usergroup UNLESS it has WP Admin userrole (but in that case he has access to the whole WP Dashboard, and he can delete other WP Admins).
- In the Front-End there is no usergroup shown for a member, neither a secondary usergroup.

Hope you have a solution (you can use the credentials of the second test site that I sent you, which has a clean installation, to see what I mean).

For now the only workaround is to install a custom WP Admin plugin to block access to WP Dashboard and other WP Admins and to add code to functions.php to remove menu items from the Admin Toolbar...

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@mhit,

Please resend the website URL and the credentials with email.

 mhit
(@mhit)
Joined: 2 years ago

Estimable Member
Posts: 59

@chris Thanks, I have resent the URL and credentials per email.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@mhit,

Sorry for giving the wrong information.

In wpForo, 

Only those users who have Admin Usergroup and Admin User Role can manage other User's Primary Usergroup from the front end. Also, the same Admin user can manage the User Secondary Usergroup from front End only if User Custom Fields Addon is activated on the website.

 mhit
(@mhit)
Joined: 2 years ago

Estimable Member
Posts: 59

@chris Thanks! The problem is solved now by installing the User Custom Fields Addon. The Forum Admin can now change the Secondary Usergroup from front end.