How can we fetch the logged in user role in the time entry rule?
We have a requirement that I need to restrict the time card editing on the basis of the roles of the employees and some custom attributes.
I was able to fetch the custom attributes but unable to fetch the role. I have created a value set, getting the value while running the SQL query but from the formula perspective I am not getting any role.
Also I need to understand that an employee can have plenty of roles so can we differentiate the role on which we want to put the validation?
I am using the below query but not returning any value?