From 122a177f7d3047edd9f23a5a5aa4cd22109b8cd5 Mon Sep 17 00:00:00 2001 From: Igor Gassmann Date: Wed, 27 Sep 2023 21:33:47 +0200 Subject: [PATCH] feat(users): expose ExternalIDs as list param (#164) --- clerk/users.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clerk/users.go b/clerk/users.go index 81ae0993..ca18985b 100644 --- a/clerk/users.go +++ b/clerk/users.go @@ -91,6 +91,7 @@ type ListAllUsersParams struct { Limit *int Offset *int EmailAddresses []string + ExternalIDs []string PhoneNumbers []string Web3Wallets []string Usernames []string @@ -150,6 +151,11 @@ func (s *UsersService) addUserSearchParamsToRequest(r *http.Request, params List query.Add("phone_number", phone) } } + if params.ExternalIDs != nil { + for _, externalID := range params.ExternalIDs { + query.Add("external_id", externalID) + } + } if params.Web3Wallets != nil { for _, web3Wallet := range params.Web3Wallets { query.Add("web3_wallet", web3Wallet)