How to add all existing users to a usergroup by a query
-
In an effort to control spam I want to manually approve all new users and add them to a usergroup. I want to make certain categories and forums visible only to users in a specific usergroup, ex “Approved”. So when a new user registers and gets added to the WordPress user database they can’t see anything (or specific forums) until I or an assistant add them to the “Approved” usergroup.
(see Asgaros Admin Guide for User Groups – https://www.asgaros.de/docs/administration-guide/user-groups/)
But all my existing users (4,500) must be added to that “Approved” usergroup first. I tried using bulk edit of users but you can only bulk select a page of users at a time. I changed the screen options to show 999 users on a page but when I bulk select the page blows up (the tab disappears in the browser!).
Is there another way to accomplish this? Can someone construct a SQL query with the appropriate fields and actions to use in phpmyadmin?
Many thanks in advance
- The topic ‘How to add all existing users to a usergroup by a query’ is closed to new replies.