How to make a user have permission to edit the record that he is responsible for?
I want to give edit permission to a user responsible for a record
Hello, you can resolve this with Contextual Role Expressions, Exemple in docs.
In your case you need to :
- Define a Contextual Role “RecordOwner” with:
- Expression : resource.ownerID==userID
- Resource type : compose:record
- Set a permission on the record in “Set permissions for all records of module” :
- For “RecordOwner” : Update records of module : Allow
- For “Authentificated” : Update records of module : Deny
Please read the following page for permission evaluation Docs access evaluation flow