Christie Molloy
11/09/2026, 10:59 AMuser.owned_files array contains (ref) resource.id.”
Could you please advise?
Kind regards,
ChrisAsk Inkeep
11/09/2026, 10:59 AMAsk Inkeep
11/09/2026, 10:59 AMowned_files, and store the keys of the resources the user owns.
2. Add an attribute to the resource, for example id, that your application fills with the key of the resource it checks.
3. Create a user set with the condition user.owned_files array contains (ref) resource.id.
4. Grant the user set its actions in the Policy Editor.(1)
Step 2 is the likely cause of the empty dropdown. The resource.id option only appears if you've defined an attribute named id on the resource type (for example file) in the resource's attribute settings. Resource attributes are defined on the resource itself, so check that:
• The attribute is created on the right resource (the one your check uses as type).
• The user.owned_files attribute is an array type, since the array contains (ref) operator applies to arrays.
Once both attributes exist, the check passes the values like this:
const permitted = await permit.check(
{
key: "john@permit.io",
attributes: { owned_files: ["readme", "budget"] },
},
"read",
{
type: "file",
attributes: { id: "readme" },
}
);
(1)
Also note that ABAC checks require a container PDP (for example at `http://localhost:7766`), because the Cloud PDP doesn't evaluate ABAC policies.(1)
If the id attribute exists on the resource and it still doesn't appear in the dropdown, I'd like our engineers to investigate. Please 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. Relevant logs from your PDPAsk Inkeep
11/09/2026, 10:59 AMChristie Molloy
11/09/2026, 10:59 AMdavid
11/09/2026, 11:03 AMChristie Molloy
11/09/2026, 11:07 AMdavid
11/09/2026, 11:22 AMarray (e.g. owned_files) and store the IDs of the resources each user owns.
2. Policy Editor - _Resources_: expand the resource type your check uses and add an attribute id.
3. Create a User Set with the condition user.owned_files → array contains (ref) - resource.id. The resource attribute shows up in the value field once you pick the (ref) operator, not in the left-hand dropdown.
4. Grant the user set its actions in the Policy Editor.
5. In permit.check(), pass the ID on the resource: attributes: { id: "<resource id>" }, and send the check to a container PDP (the Cloud PDP doesn’t evaluate ABAC).
Note that a user set matches in every tenant, so add tenant conditions if you need to limit it.
If it still doesn’t work, which user attribute and which resource type (and its attribute name) are you using? I’ll check them in Staging.Christie Molloy
11/09/2026, 11:28 AMChristie Molloy
11/09/2026, 11:37 AMdavid
11/09/2026, 12:33 PMbusinessKey on jurisdictions is set up correctly (string), but the User Set builder only lists user attributes in both dropdowns, so resource attributes can’t be picked from the list. You are correct this doesn’t match the docs, and we will fix this.
Two ways to get unblocked in the meantime:
1. In the User Set, choose user.scope_jurisdictions → array contains (ref), then type resource.businessKey directly into the value field (it accepts typed text) and save.
2. If that doesn’t save or evaluate correctly, create the set through the API: {
"key": "user_scope_jurisdiction",
"name": "UserScopeJurisdiction",
"type": "userset",
"conditions": {
"allOf": [
{ "user.scope_jurisdictions": { "array_contains": { "ref": "resource.businessKey" } } }
]Christie Molloy
11/09/2026, 2:55 PM