Maxim Baldinger
10/13/2025, 2:03 PMobject, which is great, because we have the need for nested attributes. However, if I test a resource set using this attribute, it doesn't seem to work. Can you please confirm, that it should work?
My example:
• Define foo user attribute and set it for a user to:
"foo": {
"A": 3,
"B": 6
}
• Create a resource set using the condition: resource.foo less-than (ref) user.foo.A
• Testing it with the resource attribute "foo": 4 returns true, even though it's greater than the value of foo.A (3).
As always, thanks for your help in advance 🙏 simple smileAsk Inkeep
10/13/2025, 2:03 PMAsk Inkeep
10/13/2025, 2:03 PMobject_match operator to access nested properties . Here's how it should work:
For an object attribute like:
{
"allOf": [
{
"user.organization": {
"object_match": {
"match": {
"country": {
"equals": "US"
},
"subscription": {
"equals": "pro"
}
}
}
}
}
]
}
The documentation shows that when matching object attributes, you use object_match with a match object containing the nested conditions . Normal comparison operators work within the match object for each object-attribute .
For your specific use case comparing resource.foo with user.foo.A, the issue appears to be that you're trying to directly reference a nested property (user.foo.A) in a comparison, which may not be supported in the current implementation. The documentation examples only show object matching for equality checks within the object_match operator, not for cross-referencing nested properties in less-than/greater-than comparisons.
To help our engineers investigate this further, could you please provide:
1. Which Workspace / Project / Env you are using
2. What calls you are performing (as SDK code or CURL)
3. Which PDP version you are running
4. Any relevant logs from your PDP
This will help us determine if this is a limitation or a bug in the current implementation.Ask Inkeep
10/13/2025, 2:03 PMOr Weis
10/13/2025, 2:08 PMMaxim Baldinger
10/13/2025, 2:10 PMfoo on the resource is of type number and A and B inside the object type attribute on the user are also numbers (the values I assigned, at least)Or Weis
10/13/2025, 2:15 PMMaxim Baldinger
10/13/2025, 2:21 PMresource.foo to a number inside the JSON object, user.foo.A. I mean, I know that I cannot compare a number with an object, but if we swap out resource.foo with the input (4 in my example) and user.foo.A with what is configured (3), I end up with an expression that compares numbers: 4 < 3.Or Weis
10/13/2025, 3:00 PMOr Weis
10/13/2025, 3:08 PMMaxim Baldinger
10/14/2025, 5:25 AM