It may be possible to use the frappe api.
This thread may be too old , but see if it is useful.
https://discuss.frappe.io/t/how-to-find-default-company-of-the-logged-in-user/941
It may be possible to use the frappe api.
This thread may be too old , but see if it is useful.
https://discuss.frappe.io/t/how-to-find-default-company-of-the-logged-in-user/941