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

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue