Add user assigning function