<p>You'd need to do this from a <a href="http://buildwithcraft.com/docs/plugins/introduction" rel="nofollow">plugin</a> that has a <a href="http://buildwithcraft.com/docs/plugins/controllers" rel="nofollow">controller</a> that calls <a href="http://buildwithcraft.com/classreference/services/UserGroupsService#assignUserToGroups-detail" rel="nofollow">UserGroupsService->assignUserToGroups()</a>.</p>

CC BY-SA 3.0
2015-06-05T17:57:09.063Z
2015-06-05T17:57:09.063Z
Brad Bell
<p>I've got a client project which utilizes the Users section of craft pretty heavily. I am trying to figure out if it is possible in vanilla craft to move a user from one group to another say, from the 'employee' group to the 'manager' group. I have seen some code to do it in a custom controller action in a few other posts on here, but I'd rather avoid creating a custom plugin for this if possible.</p>

<p>So is this possible? Thanks!</p>

<users><user-groups>
Change User Group Front-End
# Change User Group Front-End

(Asked by: username_0 on 2015-06-05)

I've got a client project which utilizes the Users section of craft pretty heavily. I am trying to figure out if it is possible in vanilla craft to move a user from one group to another say, from the 'employee' group to the 'manager' group. I have seen some code to do it in a custom controller action in a few other posts on here, but I'd rather avoid creating a custom plugin for this if possible.

So is this possible? Thanks!

**Tags:** users, user-groups


---

## 1 answers

### Answer by username_1 on 2015-06-05. Score: 3 | Accepted answer

You'd need to do this from a [plugin](http://buildwithcraft.com/docs/plugins/introduction) that has a [controller](http://buildwithcraft.com/docs/plugins/controllers) that calls [UserGroupsService->assignUserToGroups()](http://buildwithcraft.com/classreference/services/UserGroupsService#assignUserToGroups-detail).


---

