AssignGroupsCommand.