def METHOD_NAME(self, user_id, desktop_id):
    if user_id in self.userdesktops.keys():
        self.userdesktops[user_id].add(desktop_id)
    else:
        self.userdesktops[user_id] = set([desktop_id])
        self._add_user(user_id)