Maxim Baldinger
10/11/2025, 11:59 AMAsk Inkeep
10/11/2025, 12:00 PMAsk Inkeep
10/11/2025, 12:00 PMuser.roles with the array_contains operator (1) (2) . Here's how it works:
For checking if a user has a specific role in your ABAC conditions:
{
"user.roles": {
"array_contains": "AccountOwner"
}
}
(2) (3)
This is different from regular user attributes (like user.university or user.is_full_time) which are referenced directly (1) . Role information is stored as an array of role keys assigned to the user, not as a standard attribute (1) (2) .
If you're trying to create conditions based on roles, you'll need to combine them with other user or resource attributes. For example:
{
"allOf": [
{
"user.roles": {
"array_contains": "admin"
}
},
{
"user.time_based_groups": {
"any_match": {
"match": {
"expires": {
"greater-than-equals": {
"ref": "user.current_time"
}
}
}
}
}
}
]
}
(2)
To help debug your specific issue, could you share:
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. The relevant logs from your PDP showing the attribute complaint
This will help our engineers investigate the specific error you're encountering.Ask Inkeep
10/11/2025, 12:00 PMAsk Inkeep
10/11/2025, 12:01 PMMaxim Baldinger
10/11/2025, 12:02 PMOr Weis
10/11/2025, 12:24 PMOr Weis
10/11/2025, 12:24 PMMaxim Baldinger
10/11/2025, 12:26 PMMaxim Baldinger
10/11/2025, 12:27 PMOr Weis
10/11/2025, 12:42 PMOr Weis
10/11/2025, 12:44 PMMaxim Baldinger
10/11/2025, 1:21 PM