Get loggedin employee in script report filter

How to set the employee filter field by default based on the loggedin employee in script report?

In the JS file of the report, for the Employee filter in argument default try this:

default: frappe.get_value('Employee',{'user_id':frappe.session.user},'name')

Now it is not loading the report

can you share the filter syntax ?

{
	fieldname: "employee",
	label: __("Employee"),
	fieldtype: "Link",
	options: "Employee",
    default: frappe.get_value('Employee',{'user_id':frappe.session.user},'name')
},

yes exactly the same, can we do it through python script?

Do you really need to put user_id in each Employee to know if that employee is logged in or is there any other way?