How to get the default company from the session?

Hi ,
How to get the default value of the company from the session defaults in python?

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

1 Like

Referring to this link : we can get the session company by :
frappe.defaults.get_user_default(“Company”)
Thanks @smino