I have a subject like "accessTo" = ["123", "123-edit"]
and a resource like "interestedId" = "123"
Now I'm trying to write a condition - where it checks "interestedId" concatenated with "-edit" equals "123-edit" in "AccessTo".
Im trying to write rule like this
anyOfAny_xacml1(function[stringEqual], "accessTo", "interestedId"+"-edit")
It is not allowing to do this.
Any help is appreciated.
Since Axiomatics products are compliant with XACML specification, all attributes by default are assumed to contain multiple values(called as 'bags').
So if you would like to append a string to an attribute use
stringOneAndOnlyXACML function for the attribute to indicate that the attribute can have only one value.So assuming you mean
accessTohas attribute ID asAttributes.access_subject.subject_id,interestedIdhas the attribute ID asAttributes.resource.resource_idandanyOfAny_xacml1is equivalent toanyOfAnyXACML function, the resulting condition would look like,