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
docs: add docs for the available query filter for workspaces and users (#7875)
* Add docs for user filtering
* Add filter for workspace
* Apply suggestions from code review
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
---------
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
In the Coder UI, you can filter your users using pre-defined filters or by utilizing the Coder's filter query. The examples provided below demonstrate how to use the Coder's filter query:
136
+
137
+
- To find active users, use the filter `status:active`.
138
+
- To find admin users, use the filter `role:admin`.
139
+
140
+
The following filters are supported:
141
+
142
+
-`status` - Indicates the status of the user. It can be either `active` or `suspended`.
143
+
-`role` - Represents the role of the user. You can refer to the [TemplateRole documentation](https://pkg.go.dev/github.com/coder/coder/codersdk#TemplateRole) for a list of supported user roles.
Copy file name to clipboardExpand all lines: docs/workspaces.md
+13
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,19 @@ Coder stores macOS and Linux logs at the following locations:
90
90
91
91
> Note: Logs are truncated once they reach 5MB in size.
92
92
93
+
## Workspace filtering
94
+
95
+
In the Coder UI, you can filter your workspaces using pre-defined filters or employing the Coder's filter query. Take a look at the following examples to understand how to use the Coder's filter query:
96
+
97
+
- To find the workspaces that you own, use the filter `owner:me`.
98
+
- To find workspaces that are currently running, use the filter `status:running`.
99
+
100
+
The following filters are supported:
101
+
102
+
-`owner` - Represents the `username` of the owner. You can also use `me` as a convenient alias for the logged-in user.
103
+
-`template` - Specifies the name of the template.
104
+
-`status` - Indicates the status of the workspace. For a list of supported statuses, please refer to the [WorkspaceStatus documentation](https://pkg.go.dev/github.com/coder/coder/codersdk#WorkspaceStatus).
0 commit comments