coder / coder/coder

HTTP API: allow querying users by external auth linked id

Open
#18,828 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
14.5k
Forks
1.5k
Avg merge
1d 20h
Merged PRs (30d)
601

Description

I propose adding a new `external_auth_linked_id` query filter to the [/users endpoint](https://github.com/coder/coder/blob/c1b2304d183aa73213f057d9531f7a0d357e9d30/coderd/users.go#L248), which would filter users by the `linked_id` field on the [user_links table](https://github.com/coder/coder/blob/c1b2304d183aa73213f057d9531f7a0d357e9d30/coderd/database/dump.sql#L1775).

This would allow external integrations, like our [coder/start-workspace-action](https://github.com/coder/start-workspace-action), to look up the Coder user associated with an external account. The start workspace action currently filters users with the `github_com_user_id` field on the `users` table, which is incompatible with GitHub Enterprise.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.