Skip to content

Commit 8265d62

Browse files
authored
Merge pull request #256 from sumanthdosapati/Branch-for-GlideRecord
Get all users without an email
2 parents 3d16e4d + 643fee2 commit 8265d62

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Get all users without email
2+
3+
Use the script in script.js file to get the list of all users in sys_user table who do not have an email.
4+
This GlideRecord script can be used in multiple places. For example in background scripts.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var users = [];
2+
var gr = new GlideRecord('sys_user');
3+
gr.addNullQuery('email');
4+
gr.query();
5+
while(gr.next())
6+
{
7+
users.push(gr.name);
8+
}
9+
gs.info("Users without email are : " +users);

0 commit comments

Comments
 (0)