Users are not listing in Get Team Members API

Hi
I’m using following API to list the team related users.

curl -i -X GET \
  https://api.frame.io/v2/teams/{{team_id}}/members \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

The response list is not containing all the users that is listed in the Manage Teams page from application.

Currently 50 users assigned for a Team. The above API also returning 50 users. But some of the users are missing in the list while comparing with Manage Teams & the response.

Also, the API is returning DELETED users as well. How can we skip deleted users from the response?

Kindly suggest me the right approach to retrieve all the users based on team’s ID, if the above approach is not correct and let me know if you need any other additional details.

Thanks,
Vignesh Nivas A.

Have you checked the pagination headers on the API response to see if you need to perform additional API calls to get the rest of the results list? You can read up on those here.

As for excluding deleted users, it doesn’t look like that is supported in the API. You could however do the filtering in your code by removing any users that have a non-null deleted_at timestamp.

Thank you very much @jhodges. It worked with the pagination.

1 Like