I want to assign the doc to all employee in the department that i will assign to it

what is the best approach to do it in erpnext?

Hello @manal_erpnext

without doing any script with manual approach you can create user group department wise and with option of assign to from sidebar you can assign doc to whole department user group

@Hardik_Gadesha thx for your response
and what sould i do if any employee change its department in future? the doc still assign to him

i want the assign to the department direct to avoid any issue in future like the above