- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 10:09 AM
how can i show only active users on sys_user.list table using a business rule!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 11:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 10:39 AM
well if you want to use Business rules you can create one using script current.addQuery("active","true"); in the advance script and when is before and query is checked and table should be user (sys_user) table.
thank you
Please mark correct if applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 11:01 AM
This before query business rule for user table already exists out of box which shows only active users for non-admins. You shouldn't need to write another one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 11:05 AM
yes what is said is right but that would involve roles related to admins and as customizing OOB setting is not a right way, it can be done by creating a new business rule. i dont think there will be a conflict when both are ran as the OOB one is for non admins.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 11:14 AM
carlosbello Write a BR with below code:
var tm = '';
var as = new GlideRecord('sys_user');
as.addQuery('active','true');
as.query();
while(as.next())
{
tm += as.name +',';
gs.addInfoMessage('ACTIVE User List : " +tm);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 11:22 AM