Filter out active users except for certain roles (before query)

For example, only allow user_admins and sys admins to view lists of inactive users

this can be achieved using a before query business rule on sys user table

BR condition:

gs.getSession().isInteractive() && !gs.hasRole("admin") && !gs.hasRole("user_admin")

BR code to filter out inactive results:



Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

URL link in addInfoMessage