Question
aaseya
SA
Last activity: 17 Oct 2019 1:35 EDT
Access control policy condition on pagelist property
Hi All,
I would like to apply ABAC on the case based on the Property value which is resided in a nested pagelist.
For example, below is my workpage structure, i need to check the city value and decide to access the case or not.
Ex:-pyWorkPage.CaseEvent.EventDetails().LocationList().City
Consider, the pagelist properties are indexed. Please let me know if applying policy condition is possible or any alternate approach to proceed.
Thanks
Mohan.
Hi Mohan,
You should to set the Dynamic System Setting EnableAttributeBasedSecurity to true to enable.
For your requirement, you can create a declare expression to set the value on the original Data Page's top level property (comma separated values of the each page list entry) and use that property in the RHS of the Access control policy condition. Other approach is to create a new Data Page that programmatically iterates over the original Data Page and sets the value on the new Data Page's top level property. Then you can use the new Data Page in the Access Control Policy Condition. Values should be comma separated in either cases. (Ex: "Value1,Value2,Value3")