ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Move members to new group in bulk

September 28, 2012 11:18am

Subscribe [1]
  • #1 / Sep 28, 2012 11:18am

    Jason Turcotte

    102 posts

    I’m looking for a solution that would allow an admin user to move users from one group to another, in bulk.

    Their site currently has hundreds of users who’s role changes on a yearly basis. The content they can access is based upon their role.

    What I would like to do is allow a site admin to move more than one user to a new group. Ideally through some sort of drag/drop interface. Checkboxes would work as well… for example, “move these 20 checked users into the ‘tester’ group”.

    Anyone aware of anything that could make this happen?

  • #2 / Sep 28, 2012 2:41pm

    Bhashkar Yadav

    727 posts

    Hi Jason,

    There doesn’t seem any add-on which can fulfill your requirement.
    So it would be great to develop an custom add-on (a little module) which can show the list of members with checkboxes and admin can update the checked member’s group in bulk.

    If you would like to have the logic how to update the member group, i can share with you.


    Best Regards,

  • #3 / Sep 28, 2012 2:44pm

    Jason Turcotte

    102 posts

    Hi Jason,

    There doesn’t seem any add-on which can fulfill your requirement.
    So it would be great to develop an custom add-on (a little module) which can show the list of members with checkboxes and admin can update the checked member’s group in bulk.

    If you would like to have the logic how to update the member group, i can share with you.


    Best Regards,

    I’ve not developed a module yet, but if you’re willing to share the logic with me, I’d give it a shot.

  • #4 / Sep 28, 2012 3:02pm

    Bhashkar Yadav

    727 posts

    Hi Jason,

    There is a database table exp_members which contains member’s group id into the column “group_id”. If you updates this group_id for any particular member, member’s group will be updated.

    Now in the module, you have to track the checked member ids and update their group with query ....

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases