5

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!

Panda4Man
  • 253
  • 1
  • 8

1 Answers1

3

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

Brad Bell
  • 67,440
  • 6
  • 73
  • 143