[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

How can I add several users in one go to a group RSS feed
討論區首頁 » User Forum
發表人 內容
xchene


註冊時間: 2019/12/20
文章: 3
離線
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


註冊時間: 2013/2/21
文章: 422
離線
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


註冊時間: 2019/12/20
文章: 3
離線
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.


 
討論區首頁 » User Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer