Hi community ![]()
I’m trying to make Bookmarks / Presets / Views visible only to a specific group of users (based on role or policy), but I’m running into permission issues.
What I want
I want users with Role X to see only the bookmarks intended for Role X, and not bookmarks created for other roles.
Sample setup
- Role:
role_x - Policy:
policy_role_x - Collection (Folder):
folder_role_x - Users: Assigned to
role_x
What I tried
Using Bookmarks settings
I went to:
Settings → Bookmarks
and created a bookmark with:
collection = folder_role_x
However:
- When I log in as a user with
role_x, the folderfolder_role_xdoes not appear at all. But it works with admin account. So for me it was a lack of permissions
:
Creating permissions via API
Since Data Studio doesn’t show folders inside policies/permissions, I tried creating permissions manually via the API:
{
"collection": "folder_role_x",
"action": "read",
"policy": "policy_role_x"
}
Result:
- The user now sees the folder and its bookmarks
- BUT when clicking a bookmark, I get this error:
You don't have permission to access collection "folder_role_x" or it does not exist. Queried in root.
I also have this error using admin account.
Problem / Confusion
-
Bookmarks are visible, but cannot be accessed
-
It’s unclear whether:
- Folders are meant to be permissioned directly
- Bookmarks respect collection permissions
- Or if bookmarks are not designed to be role/policy-specific
My questions
- Is it possible to restrict folder to specific roles or policies?
- Is using a collection as a folder the correct approach?
- Are there additional permissions required for bookmarks to work when scoped by role?
- Is there a recommended pattern for role-based bookmarks in Directus?
If this is not currently supported, it would be great to know the intended or future approach. I can create or use custom extensions if necessary.
Thanks in advance for any guidance ![]()