Notifications
Clear all

wpForo 1.x.x [Solved] How to add multiple users to one usergroup; how to assign one user to multiple usergroups

7 Posts
2 Users
0 Likes
4,518 Views
Posts: 4
Topic starter
(@susieq)
Active Member
Joined: 5 years ago

Thank you for creating wpForo 😀

I have a couple of questions, which I can’t find the answers to. I’m sure I must be doing something wrong somewhere!

  • I have three Classes: A, B, and C. All students are Subscribers to the WP site.
  • I have two Forums: Red and Green.
  • Class A (25 users) needs access to the Red Forum.
  • Class B (30 users) needs access to both the Red and Green Forums.
  • Class C doesn’t need to access the forums.

I have set up two Usergroups as follows: Forums->Usergroups->Add New->Usergroup Name: Red Group; User Role: Subscriber; Default Forum Access: Standard; Other options: unchecked->Add. And the same again for the Green Group.

I have set Forums->Settings->Features->Role-Usergroup Synchronization: No so that I can see my new Usergroups.

If I look at an individual user via WPAdmin->Users->Select my user->Edit and scroll down to Forum Profile Fields – wpForo, I can see the option to manually assign the user to a Usergroup. I can select the Red Group or the Green Group.

So my questions are:

  1. Is it possible to assign a whole class/group of students to a Usergroup without having to go into each user/student manually via WPAdmin->Users->Select my user->Edit and scroll down to Forum Profile Fields – wpForo, select Usergroup? And if so, how? Should I be seeing something under WPAdmin->Users where I can click on a box and assign the user to the Usergroup?
  2. Also, is it possible to assign one student to two different Usergroups so that they can access both forums? And if so, how?

Thank you!

6 Replies
Posts: 4
Topic starter
(@susieq)
Active Member
Joined: 5 years ago

OK, I've found the answer to my second question in this thread - https://wpforo.com/community/how-to-and-troubleshooting-2/how-can-i-categorize-user-access-rights-to-forums/. That works perfectly! Thank you.

But I still haven't found out if it's possible to assign several users in one go to a Usergroup instead of having to do it manually for each user via WPAdmin->Users->Select my user->Edit and scroll down to Forum Profile Fields – wpForo, select Usergroup(s).

I'm sure I'm missing something somewhere, so any help would be great! Thank you!

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @susieq,

For multiple usergroups you should use wpForo Secondary Usergroups.

Secondary Usergroups have the same power like the Primary Usergroup. It allows to set multiple Usergroups to the same user. For example if Usergroup A has access to Forum A and Usergroup B has access to Forum B and you want User AB to have accesses to both Forum A and B you should set User AB primary Usergroup A and Secondary Usergroup B or vice versa.

Using Secondary Usergroups you can set more than one Usergroups to any user in My Profile > Account and in Dashboard > Users > Edit User page:

Secondary Usergroups are simple Usergroups listed in Dashboard > Forums > Usergroups admin page. You should edit certain Usergroup and enable the "Can be also used as Secondary Usergroup" option to use it as Secondary Usergroup:

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

Is it possible to assign a whole class/group of students to a Usergroup without having to go into each user/student manually via WPAdmin->Users->Select my user->Edit and scroll down to Forum Profile Fields – wpForo, select Usergroup? And if so, how? Should I be seeing something under WPAdmin->Users where I can click on a box and assign the user to the Usergroup?

I think you should use User Role - Forum Usergroup synchronization tool. If the students have the same WordPress User Role in WordPress, say "Students" you should navigate to Dashboard > Forums > Usergroup admin page, create a new Usergroup especially for this User Role. Save it, then synchronize them.

After the synchronization, all users with Student User Role will get Student Usergroup in forum.

1 Reply
(@susieq)
Joined: 5 years ago

Active Member
Posts: 4

Thank you Robert for your replies πŸ™‚

I can see how assigning a role to a Usergroup means that users are "automatically" added to that group, which makes it super easy to add users in bulk. However, surely this means that all users with the "Student" role would be added to all Usergroups with the User Role set to "Students", whether you want them to access that particular forum or not. Have I understood that correctly?

In my case, all the students have the "Subscriber" role, but only some of them will access Forum A; some will access Forums A and B; and some should not be able to access any forum at all!

As far as I can see, an additional WP plugin would be necessary to set up custom roles, such as "StudentForum" and 'StudentNoForum", with each user then assigned to the new relevant role. Using that approach, it would then be possible to assign the "StudentForum" role to Usergroup A, but I guess I'd have to go in to each user's profile and manually assign the smaller subset who need to access Forum A and Forum B to Usergroup B as well. Is that correct?

Thank you so much for your help!

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

I'm sorry but wpForo doesn't have option to bulk edit user usergroups. You should do that manually or find some User Role editor plugin then synchronize User Roles with Usergoups.

I think the best way to install some User Role editor plugin which allows bulk edit Users Role. Create new user role for Students A and Students B. Then create and synchronize with forum usergeoups Students A and Students B.

Here are examples of such plugins: https://wordpress.org/plugins/search/User+Role+Editor/

1 Reply
(@susieq)
Joined: 5 years ago

Active Member
Posts: 4

Thank you for clarifying that. And thank you so much for suggesting a workaround and appropriate plugins. That's so kind of you πŸ™‚

Wishing you every success with WPForo.

SusieQ