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:


current.addActiveQuery();

Comments

  1. You have provided valuable data for us. It is great and informative for everyone. Keep posting! also look at this ethylene filter for sea container Australia. I am very thankful to you.

    ReplyDelete

Post a Comment

Popular posts from this blog

GlideRecord setValue

URL link in addInfoMessage