We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d16e4d + 643fee2 commit 8265d62Copy full SHA for 8265d62
GlideRecord/Get all users whose email is empty/readme.md
@@ -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.
GlideRecord/Get all users whose email is empty/script.js
@@ -0,0 +1,9 @@
+var users = [];
+var gr = new GlideRecord('sys_user');
+gr.addNullQuery('email');
+gr.query();
5
+while(gr.next())
6
+{
7
+ users.push(gr.name);
8
+}
9
+gs.info("Users without email are : " +users);
0 commit comments