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
stringOneAndOnly
XACML function for the attribute to indicate that the attribute can have only one value.So assuming you mean
accessTo
has attribute ID asAttributes.access_subject.subject_id
,interestedId
has the attribute ID asAttributes.resource.resource_id
andanyOfAny_xacml1
is equivalent toanyOfAny
XACML function, the resulting condition would look like,