#How to get all users of a team including their phone numbers and labels

1 messages · Page 1 of 1 (latest)

dawn bridge
#

I’m building a multi-tenancy application, using teams as tenants and authenticating users with phone OTP.

I’m currently building the users management screen and calling: teams.listMemberships(id) using the the web SDK
But the response is the without the users phone numbers and labels.

Any ideas how to tackle this?
Tnx.

#

How to get all users of a team including their phone numbers and labels

old stump
#

It seems you'll have to fetch each users information, if you want to get this? Or create a collection to store this data but you might have a challege keeping the collection in sync with the users table.

verbal sand
#

ye you can't do it with one request, tho mabye creating a function to do that could be nice. for example the function can take a request param (the team ID) and the function will fetch the membership and all the account he find from the membership and returns it.