How to set user credentials with role based

Hello, i want to set credentials where this particular staff has see his details only not whole table. Could you share pictorial form for the reference. for eg.  this ABC will login with his mail id and get the access to his details. 
1 answers

add xpath constrains in the entity table. 

Say you are displaying data from employee table here, 

go to access rule and set read only access only to the user himself