Skip to content

Add GetUserExternalAccounts RPC to UsersService#107

Draft
bobheadxi wants to merge 3 commits intomainfrom
rb/get-user-external-accounts
Draft

Add GetUserExternalAccounts RPC to UsersService#107
bobheadxi wants to merge 3 commits intomainfrom
rb/get-user-external-accounts

Conversation

@bobheadxi
Copy link
Copy Markdown
Member

@bobheadxi bobheadxi commented Apr 14, 2026

Summary

Adds a new GetUserExternalAccounts RPC to the UsersService to programmatically retrieve external account connections (Google, GitHub, GitLab, email/password) for a SAMS user.

Related: https://sourcegraph.slack.com/archives/C05MW2TMYAV/p1776121219997949

Changes

  • Proto: GetUserExternalAccounts RPC, ExternalAccountType enum, ExternalAccount message
  • Scopes: user.external_accounts permission (sams::user.external_accounts::read)
  • SDK client: GetUserExternalAccountsByID convenience method
  • Generated: Connect/protobuf code via buf generate

Companion PR

Test plan

SDK compiles cleanly. Backend tests in companion PR.

bobheadxi and others added 3 commits April 14, 2026 14:27
Add a new RPC to programmatically retrieve external account connections
(Google, GitHub, GitLab, email/password) for a SAMS user.

Changes:
- Proto: GetUserExternalAccounts RPC, ExternalAccountType enum, ExternalAccount message
- Scopes: Add user.external_accounts permission
- SDK client: GetUserExternalAccountsByID convenience method
- Generated Connect/protobuf code

Required scope: sams::user.external_accounts::read

Amp-Thread-ID: https://ampcode.com/threads/T-019d8d84-7a78-71ad-9a40-15d89cd67039
Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant