Set permissions on document status behavior (open,closed)?

i want to set permissions for one user to open or close status of projects or tasks

This is what Perm Levels are for:

https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/articles/managing-perm-level


Thanks for your answer but i mean this status , it’s not doctype field

It is a field, though. Try setting the status field in the Project doctype to Perm Level 1. It should prevent you from changing the project’s status, whether via the field or via the dropdown menu.

i wonder if the below steps may fit your case:

  1. You create a custom field (for example role or department) to define that user belongs to that group.
  2. You create custom fields (Status; Role) in Project doctype
  3. You set up user permission to allow that user to access Status data