Comments on: Custom Login Validation with Installation Exits https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 20:53:37 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Melanie https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7538 Thu, 14 Dec 2017 22:29:55 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7538 This was very helpful!

]]>
By: Ahmed https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7537 Mon, 17 Apr 2017 13:39:15 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7537 I think this functionality should come out the box! It’s a great bit of functionality, very useful

]]>
By: Shannon https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7536 Fri, 28 Aug 2015 15:08:58 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7536 In reply to Mark Stanger.

OK thanks!

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7535 Fri, 28 Aug 2015 14:46:18 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7535 In reply to Shannon.

These warnings aren’t anything to worry about, the code here is 95% based on the out-of-box ServiceNow installation exits so they’re the ones responsible for the warnings :). I opted to keep it as similar as possible to the out-of-box code for consistency. It should run just fine though.

]]>
By: Shannon https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7534 Fri, 28 Aug 2015 13:58:25 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7534 When I tried to paste the code in, I got syntax errors. I don’t know enough about coding to debug though.
WARNING at line 15: ‘user’ is already defined.
WARNING at line 35: ‘user’ used out of scope.
WARNING at line 39: ‘user’ used out of scope.
WARNING at line 56: ‘sysMessage’ is already defined.
WARNING at line 57: ‘sysMessage’ used out of scope.
WARNING at line 62: ‘session’ is already defined.
WARNING at line 63: ‘session’ used out of scope.
WARNING at line 70: ‘EventManager’ is already defined.
WARNING at line 75: ‘t’ is already defined.
WARNING at line 76: ‘EventManager’ used out of scope.
WARNING at line 78: Missing semicolon.

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7533 Tue, 29 Jan 2013 20:17:27 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7533 In reply to Mark Sandner.

Glad to hear it works for you Mark. I’m not sure why you’re getting that error either. I don’t see it in my testing on the ServiceNow demo instance so it must just be some quirk with copy/paste or the syntax editor.

]]>
By: Mark Sandner https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7532 Tue, 29 Jan 2013 18:02:12 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7532 Excellent, I was just about to scroll through the list of user and de-activate them. I used the Installation exit script, which works fine, but the syntax checker tells me “WARNING at line 60: Missing semicolon.” Not sure why it asks me to put one there, but it doens’t seem to stop the script from working. Cheers…Mark

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7531 Mon, 02 Jul 2012 22:31:20 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7531 In reply to Michael Brown.

Awesome. I’m glad it worked for you. Thanks for the feedback!

]]>
By: Michael Brown https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7530 Mon, 02 Jul 2012 21:08:00 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7530 I just came across a need for this. It works great. Very Nice!

]]>
By: Mark Stanger https://servicenowguru.com/system-definition/custom-login-validation-installation-exits/#comment-7529 Thu, 28 Oct 2010 11:36:06 +0000 https://servicenowguru.wpengine.com/?p=2119#comment-7529 In reply to Brian Broadhurst.

It took me a while, but here’s the post I promised about System Properties… https://servicenowguru.com/system-definition/w

]]>