Script for login authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2015 10:02 AM
Hi All,
What is script (script include/ BRule) used for validating user login into the servicenow instance?
Please share it.
Thanks in advance.
Regards,
VimalPriya S
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 01:14 AM
Go to system UI->Messages->Search for key login_invalid.
Please mark the response as correct/helpful if this answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 03:32 AM
Yes I got it .
Thanks Pradeep
But still I have one more doubt,If the login has failed the error message will be populated from the installion exists as you mentioned.
In case ,if the login successfull from which script the session is provided to that user.
Thanks in advance.
Regards,
VimalPriya S

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2015 03:36 AM
Will look in to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2015 03:14 AM
Hi Pradeep,
Any updates on it ???
Thanks in advance.
Regards,
VimalPriya S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 06:11 AM
Hi Vimal Priya,
I know this is old post, but I am curious to know if you have found how system validates the user. I have done some research as I am working on something similar. I have reviewed the login widget and it sends HTTP POST to view_form.login(which I not sure how to access) with username, password. The Post method handles the validation and returns the response. Based on the response code the success or error message is displayed.