Discovery Credential check automatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2024 11:26 PM
Hi All,
I have a requirement to automate the process to check the Discovery credential automatically and create a corresponding task in sc_task table.
I create one flow and check the record in IP affinitity table but it's not working as expected, Some time credentials not having any IP affinity record but still credentials are working fine.
Please check flow chart in attachment.
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 12:59 AM
Hi All,
If anyone have any idea, please guide me to accomplish above requirement.
Thanks,
Shubham Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 01:18 AM
Hi @shubhamverm6594 ,
I didnt get your use case, explain little more which you are trying to achieve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 01:29 AM
Hi @Runjay Patel,
Thank you for your response and for your insightful videos—they’ve been really helpful!
I’d like to discuss an implement to our Discovery process regarding the credential table we are using for authentication. Given that organizations have policies for credential rotation, it’s crucial that we have a systematic approach in place.
The requirement is to ensure that when any credentials are reset in the future, the Discovery Admin should receive an email notification. Alongside this, a task should be created for that specific credential to track the changes and ensure discovery working as expected.
Could we discuss how to implement this feature?
Thanks
Shubham Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 02:37 AM
Hi @shubhamverm6594 ,
You can create a BR rule and fire event to send notification. Follow below steps.
- Create an event based notification.
- Create a after update BR and use below logic.
if (current.password != previous.password ||
current.auth_key != previous.auth_key ||
current.certificate != previous.certificate) {
// Notify the Discovery Admin
gs.eventQueue(‘event.name’, current, parm1, parm2);
// Create a task for tracking
var task = new GlideRecord('task'); // Use 'task' or a specific table for tracking
task.initialize();
task.short_description = "Verify updated credential: " + current.name;
task.description = "The credential '" + current.name + "' was updated. Verify that Discovery is working correctly with the new details.";
task.assigned_to = "discovery_admin"; // Replace with appropriate user or group
task.insert();
}
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------