How to auto assign a user to a Project with script?

Hi there.

I got a problem.
I have some projects and two company.
The users are workers at they own company, so they filtered some project from the list with a filter.
They only see they own companies project. Thats working great.
I want to automatically assign users to project at one the companies.
How to auto assign a user at the selected company project?

Is there a scripting thing for them?
Please let me know.
Thank you.

Greatings.

you can use Auto Assignment tool In V 12

regards
Harshal Nirmal

https://docs.erpnext.com/docs/user/manual/en/automation/assignment-rule