Write user id

Good Morning

There are two tables, a collection “Orders” and another “Users”, in the users collection there is the ID, I want to write this “ID” in the “Orders” collection in the “owner” field that was created, this recording has to occur when a new order on the page.

So could anyone help me with this situation ??

When you insert data with the wixData API, you can set the _owner value to whatever you want it to be:
https://www.wix.com/corvid/reference/wix-data.html#insert

I think you need the " suppressAuth " options to be able to do that