external service call in domain's row level security

We are using jasper report server version 5.6. We have the following use case to support:
We want to create a Domain with enhanced Security policies for it where we want to call an external service (e.g. a service which returns obligations based on logged in user and some custom logic) in row level security filter(filterExpression). Is there a way to achieve the same? Is it possible to expose a custom object like, authentication or tenant which can be bind in groovy runtime?
shailesh.mishra's picture
Joined: Jan 12 2015 - 1:08am
Last seen: 7 years 10 months ago

1 Answer:

Yes within the Domain secuirty file you can call Groovy code with groovy('YourFunctionHere()')

ernestoo's picture
Joined: Nov 29 2010 - 11:59am
Last seen: 5 years 1 month ago

Hi, this may be silly, but where do I define this function? WEB-INF/groovy/somegroovyfile.groovy? Will this be the legit way of doing this? thanks.

shailesh.mishra - 7 years 10 months ago

Not 100% but you can see how testProfileAttribute is declared and that might give a clue

ernestoo - 7 years 10 months ago

Thanks ernestoo. Will try this out.

shailesh.mishra - 7 years 10 months ago