I’m trying to setup post certification workflow via remediation task(Common interfaces :: ForgeRock Identity Governance ) by taking sample remediation.js from IGA path. As per remediation task we need to update an attribute in Managed User Object .
However at the beginning itself IDM is throwing error as below.
Can someone provide some insight on this error and any proper working sample script of remediation.js that I can refer for the same ?
Thank You,
Code snippet: Error is at “request.content;”
[cid:6ece21ce-046a-48df-adea-fb05af120833]
Error from IDM logs:
[164] Nov 29, 2023 1:28:16.990 PM org.forgerock.openidm.script.registry.ScriptRegistryImpl$ScriptImpl eval
SEVERE: Script invocation error
org.forgerock.openidm.script.ScriptThrownException: ReferenceError: “request” is not defined.
at org.forgerock.openidm.script.registry.ScriptRegistryImpl$ScriptImpl.eval(ScriptRegistryImpl.java:893)
at org.forgerock.openidm.script.impl.ScriptRegistryService.handleAction(ScriptRegistryService.java:758)
at org.forgerock.json.resource.Router.handleAction(Router.java:251)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:54)
at org.forgerock.json.resource.ResourceApiVersionRoutingFilter.filterAction(ResourceApiVersionRoutingFilter.java:39)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.json.resource.FilterChain.handleAction(FilterChain.java:225)
at org.forgerock.json.resource.Router.handleAction(Router.java:251)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:54)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:44)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.openidm.audit.filter.AuditFilter.lambda$filterAction$0(AuditFilter.java:119)
at org.forgerock.openidm.audit.filter.AuditFilter.logAuditAccessEntry(AuditFilter.java:175)
at org.forgerock.openidm.audit.filter.AuditFilter.filterAction(AuditFilter.java:119)
at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterAction(MutableFilterDecorator.java:66)
at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:42)
at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:52)
at org.forgerock.openidm.servlet.internal.DefaultApiVersionFilter.lambda$filterAction$2(DefaultApiVersionFilter.java:177)
at org.forgerock.openidm.servlet.internal.DefaultApiVersionFilter.handleRequest(DefaultApiVersionFilter.java:219)
at-------