You can enable the ‘Store owner’ system member, in entity properties,
then, in the entity security, you can write the XPath,
Hope it helps!
In the entity security you can constrain access to the owner of the object:
Make sure to turn on the owner checkmark on the entity settings:
If you want to make sure no user can edit besides the owner, make sure this constraint is applied on all access rules on this entity, meaning for all roles.