![]() |
Mass moving users to another usergroup sql query?
Hello guys, I'd like to ask about sql query to massive move all users from a usergroup (ex Group A) to another usergroup (Group B). :confused:
Thank you all. |
You could change the primary user group with this query:
Code:
UPDATE user SET usergroupid = B WHERE usergroupid = A But changing the group might result in a change in user title or rank (which I think you can do by running "update user titles and ranks" in the "update counters" section of the Maintenance menu). Another option might be to add a promotion from group A to group B and set the conditions so everyone qualifies (such as strategy "Posts" and 0 Posts), then run the "User Promotions" scheduled task (run it manually by pressing "Run Now" - if you wait for it to run itself it will only promote users who have been active recently). |
you can use Vbulletin Prune/Move Users to move user.
or SQL QUERY Code:
UPDATE user set usergroupid = GroupB_ID where usergroupid = GroupA_ID; In place of GroupA_ID -> enter groupa usergroupid. oops - i m late.. |
Quote:
|
Thank you guys :) Both of posts are helpful for me.
|
All times are GMT. The time now is 02:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|