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!

1 Answer 1


You'd need to do this from a plugin that has a controller that calls UserGroupsService->assignUserToGroups().


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.