Skip to content

Commit

Permalink
feat(users): expose ExternalIDs as list param (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
IGassmann authored Sep 27, 2023
1 parent 0a3b681 commit 122a177
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clerk/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ type ListAllUsersParams struct {
Limit *int
Offset *int
EmailAddresses []string
ExternalIDs []string
PhoneNumbers []string
Web3Wallets []string
Usernames []string
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 122a177

Please sign in to comment.