Reassign button customization for Smart Assessments

Simanta27
Tera Contributor

Hi Everyone,

I am currently working with Smart Assessments for BCM (Business continuity management) scope, and we have a requirement to customize the Reassign button on the Smart assessment to pull in a filtered list of users only.

I am not able to locate the backend configuration for this. Has anyone worked on a similar requirement?

Attaching screenshot for reference.

Thank you in advance. 🙂

Simanta27_0-1759833908766.png

 

11 REPLIES 11

Teju Chinthoti
ServiceNow Employee

Hi @Simanta27 ,

 

You can find the configuration in the scripted extension point "sn_smart_asmt.UserFilteringExtensionPoint"

 

Thanks,

Teju.

How do we use this? This seems to be a new functionality that even our development team is not familiar with.

Ok I think I got this figured out! Posting for others looking for a solution. So I clicked the "Create implementation" Related Links UI Action and created an extension instance in the GRC: Policy and Compliance scope. Here's the script 

 

var UserFilteringExtensionPoint = Class.create();
UserFilteringExtensionPoint.prototype = {
    initialize: function() {},
 
    handles: function(categoryGR) {
return true;
    },
 
    getReassignFilter: function(asmtInstGR) {
return {
additionalQuery: 'active=true^roles=sn_grc.business_user',
            overriddenTable: 'sys_user'
    },
 
    getCollaboratorFilter: function(asmtInstGR) {
return {
additionalQuery: 'active=true^roles=sn_grc.business_user',
            overriddenTable: 'sys_user'
};
    },
 
    type: 'UserFilteringExtensionPoint'
};

Hi @Teju Chinthoti 

I created the extension point as you suggested but the filtering is only working for the admin users. Folks with either the reassign role or the folks who have the assessment assign to them are not getting any results. Any help would be great!