userHasRole
To return Yes (true) if a user has a given role
Check with this function if the current or a given user has a specific role.
userHasRole(string)
userHasRole(user, string)
boolean
userHasRole(role)
To return Yes (true
), if the current user has a given role.1
userHasRole("admin")
Result: Yes (
true
) if the current user has the admin role
userHasRole(myUser, role)
To return Yes (true
) if a given user has a given role.1
userHasRole('Created by', "admin")
Result: Yes (
true
) if the creator of the selected record has the admin roleDo you want to dive deeper into the topic? Take a look at the corresponding part of our video tutorial.
Last modified 7mo ago