You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
searchquery: user: filter rejects usernames the requester cannot read while owner: accepts them #29961
The workspace search accepts owner:<username> for any username, but user:<username> resolves the username with the requester's permissions (parseUser in coderd/searchquery/search.go) and returns a 400 when the requester cannot read that user. The same owner filter therefore works as owner:alice and fails as user:alice for members without permission to read other users.
This affects the Workspaces Owner filter from #29872: its "Include workspaces shared with {owner}" switch rewrites owner:<name> to user:<name>. #29872 commits typed owners under owner: so the default path works, but turning the switch on for an owner the requester cannot read still returns a 400.
Options:
Let user: fall back to matching by username (owner) plus shares when the lookup is unauthorized, or resolve it with a system context limited to the ID lookup.
Or have the frontend disable the switch when the applied owner cannot be read.
Activity
linear-code commentedon Sep 26, 2026
ENG-3395
feat(site/src): add an Owner scope toggle for shared workspaces (#29872)