Search…
Resources
Related Links
userIsAdmin
To return "Yes" if the current user has the admin role
With this function, you can check if the current user's role is "admin", that is if they have admin rights.
Adding this function to Display only, if the respective field is only visible to users with an admin role.

Syntax

userIsAdmin()

Return

boolean

Examples

userIsAdmin()
Result: Yes (if the current user has admin rights)

See also

​userRole, which returns the role of a user.
Last modified 8mo ago
Export as PDF
Copy link