Policy Exception Request Extension Button - Allow a certain group to request extension
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 11:59 PM
Hi All,
Currently, only the requestor can request an extension on policy exceptions. I have a requirement to allow a certain group for e.g risk managers to also have that ability to request an extension on a policy exception. What will be the best way to do so?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2024 04:47 AM - edited 01-20-2024 04:48 AM
In the policy exception screen, there is a UI action named "Request Extension". The condition for this UI exception is "current.canRead() && new PolicyException().canRequestExtention(current) && current.source_record_table != 'sn_compliance_policy_acknowledgement_instance';"
You would have to modify canRequestExtension function which is in PolicyExceptionBase Script Utils or you can write your own function and call that instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 01:16 AM
Hi Anand,
I have extended the script include as follows:
I still cannot see the request extension button when impersonating the risk manager.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 04:43 AM
Before modifying the script include, I would suggest removing canRequestExtension call from condition field and see if the button available for risk manager. This clearly prove that canRequestExtension function is blocking this. Once you complete that, I would suggest you check if the user has has sn_risk.manager role. sn_risk roles are mainly used for risks, policy exception is sn_compliance. So, it may be sn_compliance.manager depends on your implementation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 06:38 AM
Hi Anand,
Removing the canRequestExtension call from condition field, users other than the requester e.g the risk managers are able to see the request extension button. However, I receive the following error when trying to submit the extension:
"Could not update the exception". Not sure why this is the case? The user has the risk manager role