How can I assign ‘george@gmail.com’ user to a Sales Order by ToDo using custom script?
There is a API for that.
/api/method/frappe.desk.form.assign_to.add
you can directly assign to any users from Sales Order.