[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


A beta version of JForum 2.7.0 is available with lots of improvements. Read all about it here.

How can I add several users in one go to a group RSS feed
Forum Index » User Forum
Author Message
xchene


Joined: 2019/12/20
Messages: 3
Offline
Hi,

I need to create new forums and restrict them to some users.
The user basis already exists, not yet the groups.
How can I easily populate the new groups, without having to go edit each user individually (we speak of hundreds of users).

I authenticate against Active Directory, but apparently, we cannot use AD (or LDAP) groups in general in the definition of groups.


Any idea welcome!


udittmer


Joined: 2013/2/21
Messages: 309
Online
Indeed, JForum does not interact with AD or LDAP like that. I understand the users already exist in JForum. After you have created the groups, you could add the user-to-group associations directly via

INSERT INTO jforum_user_groups ( user_id, group_id ) VALUES ( ?, ? )


where you'd replace the question marks with the userID and groupID, respectively.

You would find the relevant IDs via

select group_id, group_name from jforum_groups;

select user_id, username from jforum_users;

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
xchene


Joined: 2019/12/20
Messages: 3
Offline
Thanks a lot for the detailed answer, we'll probably write a small job to maintain some jForum groups with Active Directory info.
That said, it would be very nice feature to be able to define jForum groups based on LDAP or AD groups.
Perhaps an idea to consider in a future release of jForum.


 
Forum Index » User Forum
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer