mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: support filtering users table by login type (#17238)
#15896 Mentions ability to add support for filtering by login type The issue mentions that backend API support exists but the backend did not seem to have the support for this filter. So I have added the ability to filter it. I also added a corresponding update to readme file to make sure the docs will correctly showcase this feature
This commit is contained in:
@@ -190,6 +190,8 @@ to use the Coder's filter query:
|
||||
`status:active last_seen_before:"2023-07-01T00:00:00Z"`
|
||||
- To find users who were created between January 1 and January 18, 2023:
|
||||
`created_before:"2023-01-18T00:00:00Z" created_after:"2023-01-01T23:59:59Z"`
|
||||
- To find users who login using Github:
|
||||
`login_type:github`
|
||||
|
||||
The following filters are supported:
|
||||
|
||||
@@ -203,3 +205,4 @@ The following filters are supported:
|
||||
the RFC3339Nano format.
|
||||
- `created_before` and `created_after` - The time a user was created. Uses the
|
||||
RFC3339Nano format.
|
||||
- `login_type` - Represents the login type of the user. Refer to the [LoginType documentation](https://pkg.go.dev/github.com/coder/coder/v2/codersdk#LoginType) for a list of supported values
|
||||
|
||||
Reference in New Issue
Block a user