How to check user that create object in mendix

My requirement is Only admin and user who create ( Owner ) can change status of object  when retrieve admin i use Choose system → userrole  [System.UserRoles = '[%CurrentUser%]'] [id = '[%UserRole_Administrator%]'] But I didn’t know How to Check current user are the owner ( Whose create the object ) or not ?
1 answers

You can accomplish this using Access Rules on the entity in your model.  If your entity is created like this:


On the Access Rules tab, you can create these rules:

The rule highlighted in blue indicates that the creator of the object has full access to change the rights.

The second User rule indicates that other users can only read objects they have not created

The Admin rule indicates that Admin can read, write and delete any objects.


Hope that helps