Programmatically fetch a user by an account id, through rest api

Hello,
I’m using Boundary REST api.
I’m trying to find a User, using the LIST USERS api (GET /v1/users), when I have an account id.

I’ve tried using the filter param like so:

  1. item.primary_account_id matches account_id
  2. item.accounts.id matches account_id

Neither worked and I feel like I hit a wall.

Is there a way to do what I’m trying to achieve?

Thanks.

List does not currently show that information; you will have to do a read on each user to see the accounts that are associated with it.

Alright, thanks.

Is there a way to find a user by email or subject?

There is not currently, no.

1 Like