Hi,
we want to configure a repository permission that restricts the result to all a12 documents where a field is empty.
In solr we can express this via -field:*
but if we use it inside a repository permission it has no effect.
{
"name": "Broker Users may only list their Endorsements",
"target": "hasAccessRight('ENDORSEMENT_ACCESS') && hasRole('broker') && (#resource == 'Endorsement' || #resource == 'Endorsement_cdm')",
"dataPreload": [
"#filter = -EndorsementPolicy_relationship.PolicyBroker_relationship.Broker.BrokerNumbers.VisibilityBrokerId:*"
],
"templates": [
"#filter"
]
}
How can this be done?
Thank you
hi @julian-typed-spruce
The actual query should be written in templates area.
Please also aware your query in Templates will be used within Data Services ( I assume you use Data Services).
If this is the case then @tomas-thin-gale can help you.
Cheers,
Tuan Do
Hi @julian-typed-spruce ,
This functionality will only be possible in 2025.06. No current DS version can do that.
Dear @julian-typed-spruce,
are you planning to migrate, and thus was the response helpful and is the issue now solved or are there some additional questions or the need to find a custom solution? If it is solved, please, use the checkbox to mark the solution to your problem so that other users also know what helped to your case.
All the best
from the Discourse team
Hello @julian-typed-spruce , I am a member of the Discourse team. I can see that there was a new response to your question on the Topic of the discussion. Do you find it helpful, or should the question remain open?
Thanks ahead for your feedback and have a nice rest of the day!