Assigning user groups to end users